diff options
Diffstat (limited to 'testing/web-platform/tests/workers/nested_worker_sync_xhr.worker.js')
-rw-r--r-- | testing/web-platform/tests/workers/nested_worker_sync_xhr.worker.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/web-platform/tests/workers/nested_worker_sync_xhr.worker.js b/testing/web-platform/tests/workers/nested_worker_sync_xhr.worker.js new file mode 100644 index 0000000000..609ecc49e1 --- /dev/null +++ b/testing/web-platform/tests/workers/nested_worker_sync_xhr.worker.js @@ -0,0 +1,11 @@ +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(); |