test_bug351633-2.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!DOCTYPE HTML>
  2. <html>
  3. <!--
  4. https://bugzilla.mozilla.org/show_bug.cgi?id=351633
  5. -->
  6. <head>
  7. <title>Test for Bug 351633</title>
  8. <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  9. <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
  10. </head>
  11. <body>
  12. <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=351633">Mozilla Bug 351633</a>
  13. <pre id="test">
  14. <script class="testbody" type="text/javascript">
  15. /** Test for Bug 351633 **/
  16. var passJSUrl1 = false;
  17. var passJSUrl2 = false;
  18. var passJSUrl3 = false;
  19. var passJSUrl4 = false;
  20. SimpleTest.waitForExplicitFinish();
  21. addLoadEvent(function() {
  22. is(passJSUrl1, true, "Should have stopped load before getting here");
  23. is(passJSUrl2, true, "Should not have stopped load where we didn't set " +
  24. "location");
  25. is(passJSUrl3, true, "Should not have stopped load where javascript: URI " +
  26. "didn't return text");
  27. is(passJSUrl4, true, "Should not have stopped load where javascript: URI " +
  28. "wasn't set on the document itself");
  29. SimpleTest.finish();
  30. });
  31. </script>
  32. </pre>
  33. <p id="display">
  34. <iframe src="load-stopping-1a.html"></iframe>
  35. <iframe src="load-stopping-1b.html"></iframe>
  36. <iframe src="load-stopping-1c.html"></iframe>
  37. <iframe src="load-stopping-1d.html"></iframe>
  38. </p>
  39. <div id="content" style="display: none">
  40. </div>
  41. </body>
  42. </html>