test_bug998474.html (888B)
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"> 17 18 function boom() 19 { 20 var worker = new SharedWorker("bug998474_worker.js"); 21 22 setTimeout(function() { 23 port = worker.port; 24 port.postMessage(""); 25 26 setTimeout(function() { 27 port.start(); 28 ok(true, "Still alive!"); 29 SimpleTest.finish(); 30 }, 150); 31 }, 150); 32 } 33 34 SimpleTest.waitForExplicitFinish(); 35 SimpleTest.requestFlakyTimeout("untriaged"); 36 37 </script> 38 </pre> 39 </body> 40 </html>