diff options
Diffstat (limited to 'testing/web-platform/tests/workers/nested_worker.worker.js')
-rw-r--r-- | testing/web-platform/tests/workers/nested_worker.worker.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/web-platform/tests/workers/nested_worker.worker.js b/testing/web-platform/tests/workers/nested_worker.worker.js new file mode 100644 index 0000000000..005b3c2f30 --- /dev/null +++ b/testing/web-platform/tests/workers/nested_worker.worker.js @@ -0,0 +1,11 @@ +importScripts("/resources/testharness.js"); + +async_test(function() { + var worker1 = new Worker("support/WorkerBasic.js"); + worker1.postMessage("ping"); + worker1.onmessage = this.step_func_done(function(evt) { + assert_equals(evt.data, "Pass"); + worker1.terminate(); + }); +}, "Nested worker"); +done(); |