Backed out changeset 5c7de47bcacb (bug 1927094) for causing Bug 1928689. a=backout
[gecko.git] / dom / workers / test / test_clearTimeouts.html
blobcaa87fbf56c3d4fa628174cb20360dfc6e862fa9
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 DOM Worker Threads</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>
13 <p id="display"></p>
14 <div id="content" style="display: none"></div>
15 <pre id="test">
16 <script class="testbody" type="text/javascript">
18 new Worker("clearTimeouts_worker.js").onmessage = function(event) {
19 event.target.terminate();
21 is(event.data, "ready", "Correct message");
22 setTimeout(function() { SimpleTest.finish(); }, 1000);
25 SimpleTest.waitForExplicitFinish();
26 SimpleTest.requestFlakyTimeout("untriaged");
28 </script>
29 </pre>
30 </body>
31 </html>