test_404.html 865 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. <!--
  8. Tests of DOM Worker Threads
  9. -->
  10. <head>
  11. <title>Test for DOM Worker Threads</title>
  12. <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  13. <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
  14. </head>
  15. <body>
  16. <pre id="test">
  17. <script class="testbody" type="text/javascript">
  18. var worker = new Worker("nonexistent_worker.js");
  19. worker.onmessage = function(event) {
  20. ok(false, "Shouldn't ever get a message!");
  21. SimpleTest.finish();
  22. }
  23. worker.onerror = function(event) {
  24. is(event.target, worker);
  25. event.preventDefault();
  26. SimpleTest.finish();
  27. };
  28. worker.postMessage("dummy");
  29. SimpleTest.waitForExplicitFinish();
  30. </script>
  31. </pre>
  32. </body>
  33. </html>