2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
8 Tests of DOM Worker JSON messages
11 <title>Test for DOM Worker Navigator
</title>
12 <script 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 src=
"json_worker.js" language=
"javascript"></script>
22 <script class=
"testbody" language=
"javascript">
24 var worker = new Worker(
"instanceof_worker.js");
26 worker.onmessage = function(event) {
27 ok(event.data.status, event.data.event);
33 worker.postMessage(
42);
35 SimpleTest.waitForExplicitFinish();