diff options
Diffstat (limited to 'testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/setInterval.html')
-rw-r--r-- | testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/setInterval.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/setInterval.html b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/setInterval.html new file mode 100644 index 0000000000..2f0ba176d4 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/setInterval.html @@ -0,0 +1,17 @@ +<!doctype html> +<title>close() and setInterval</title> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<div id="log"></div> +<script> +setup({ single_test: true }); + +var worker = new Worker('setInterval.js'); +worker.onmessage = function(e) { + assert_unreached("Got message"); +}; +worker.onerror = function(e) { + assert_unreached("Got error"); +}; +setTimeout(done, 2000); +</script>
\ No newline at end of file |