2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
8 Tests of DOM Worker Threads
11 <title>Test for DOM Worker Threads
</title>
12 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
13 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
17 <script class=
"testbody" type=
"text/javascript">
19 var worker = new Worker(
"nonexistent_worker.js");
21 worker.onmessage = function(event) {
22 ok(false,
"Shouldn't ever get a message!");
26 worker.onerror = function(event) {
27 is(event.target, worker);
28 event.preventDefault();
32 worker.postMessage(
"dummy");
34 SimpleTest.waitForExplicitFinish();