Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /workers/nested_worker_sync_xhr.worker.html - WPT Dashboard Interop Dashboard
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();