diff options
Diffstat (limited to 'testing/web-platform/tests/workers/semantics/run-a-worker/001.html')
-rw-r--r-- | testing/web-platform/tests/workers/semantics/run-a-worker/001.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/web-platform/tests/workers/semantics/run-a-worker/001.html b/testing/web-platform/tests/workers/semantics/run-a-worker/001.html new file mode 100644 index 000000000..aa0fc67ef --- /dev/null +++ b/testing/web-platform/tests/workers/semantics/run-a-worker/001.html @@ -0,0 +1,22 @@ +<!-- +postMessage(this === self); + +/* +--> +<!doctype html> +<title>worker global scope, dedicated worker</title> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<div id=log></div> +<script> +async_test(function() { + var worker = new Worker('#'); + worker.onmessage = this.step_func(function(e) { + assert_true(e.data); + this.done(); + }); +}); +</script> +<!-- +*/ +//-->
\ No newline at end of file |