https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 614c1ccac5f885e58444fe74a2aedd120d2ca73f authored by Marcos Cáceres on 21 August 2018, 05:04:44 UTC
Add romandev
Tip revision: 614c1cc
nested_worker_sync_xhr.worker.js
importScripts("/resources/testharness.js");

async_test(function() {
    const worker = new Worker("support/sync_xhr.js");
    worker.postMessage("ping");
    worker.onmessage = this.step_func_done(function(evt) {
        assert_equals(evt.data, "Pass");
        worker.terminate();
    });
}, "Nested worker that issues a sync XHR");
done();
back to top