2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
8 <title>Test for
1132395</title>
9 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
14 <script class=
"testbody" type=
"text/javascript">
16 // This test is full of dummy debug messages. This is because I need to follow
17 // an hard-to-reproduce timeout failure.
20 var sw = new SharedWorker('bug1132395_sharedWorker.js');
21 sw.port.onmessage = function(event) {
22 info(
"sw.onmessage received");
23 ok(true,
"We didn't crash.");
27 sw.onerror = function(event) {
28 ok(false,
"Failed to create a ServiceWorker");
32 info(
"sw.postmessage called");
33 sw.port.postMessage('go');
35 SimpleTest.waitForExplicitFinish();