Backed out changeset 06f41c22f3a6 (bug 1888460) for causing linux xpcshell failures...
[gecko.git] / dom / workers / test / test_bug998474.html
blob93632a5de42b207086974d3edc421a2f53c93f49
1 <!--
2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
4 -->
5 <!DOCTYPE HTML>
6 <html>
7 <head>
8 <title>Test for bug 998474</title>
9 <script src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
11 </head>
12 <body onload="boom();">
13 <p id="display"></p>
14 <div id="content" style="display: none"></div>
15 <pre id="test"></pre>
16 <script class="testbody" type="text/javascript">
18 function boom()
20 var worker = new SharedWorker("bug998474_worker.js");
22 setTimeout(function() {
23 port = worker.port;
24 port.postMessage("");
26 setTimeout(function() {
27 port.start();
28 ok(true, "Still alive!");
29 SimpleTest.finish();
30 }, 150);
31 }, 150);
34 SimpleTest.waitForExplicitFinish();
35 SimpleTest.requestFlakyTimeout("untriaged");
37 </script>
38 </pre>
39 </body>
40 </html>