test_bug978260.html 839 B

123456789101112131415161718192021222324252627282930313233343536
  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. SimpleTest.waitForExplicitFinish();
  18. var xhr = new XMLHttpRequest();
  19. xhr.onload = function () {
  20. var worker = new Worker("bug978260_worker.js");
  21. worker.onmessage = function(event) {
  22. is(event.data, "loaded");
  23. SimpleTest.finish();
  24. }
  25. }
  26. xhr.open('GET', '/', false);
  27. xhr.send();
  28. </script>
  29. </pre>
  30. </body>
  31. </html>