test_clearTimeouts.html 827 B

1234567891011121314151617181920212223242526272829303132
  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 type="text/javascript" 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">
  17. new Worker("clearTimeouts_worker.js").onmessage = function(event) {
  18. event.target.terminate();
  19. is(event.data, "ready", "Correct message");
  20. setTimeout(function() { SimpleTest.finish(); }, 1000);
  21. }
  22. SimpleTest.waitForExplicitFinish();
  23. SimpleTest.requestFlakyTimeout("untriaged");
  24. </script>
  25. </pre>
  26. </body>
  27. </html>