2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
8 Tests of DOM Worker Console
11 <title>Test for DOM Worker Console
</title>
12 <script type=
"text/javascript" src=
"/tests/SimpleTest/SimpleTest.js"></script>
13 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
17 <div id=
"content" style=
"display: none">
21 <script class=
"testbody" language=
"javascript">
22 var worker = new Worker(
"console_worker.js");
24 worker.onmessage = function(event) {
25 is(event.target, worker,
"Worker and target match!");
26 ok(event.data.status, event.data.event);
28 if (!event.data.status || event.data.last)
32 worker.onerror = function(event) {
33 ok(false,
"Worker had an error: " + event.message);
37 worker.postMessage(true);
39 SimpleTest.waitForExplicitFinish();