test_bug351633-4.html 897 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. <p id="display">
  14. <iframe name="x" id="x"></iframe>
  15. </p>
  16. <div id="content" style="display: none">
  17. </div>
  18. <pre id="test">
  19. <script class="testbody" type="text/javascript">
  20. /** Test for Bug 351633 **/
  21. var str;
  22. str = "a";
  23. window.x.location.href =
  24. "javascript: parent.str += 'c'; void(parent.finishTest());"
  25. str += "b";
  26. SimpleTest.waitForExplicitFinish();
  27. function finishTest() {
  28. is (str, "abc", "Unexpected ordering");
  29. SimpleTest.finish();
  30. }
  31. </script>
  32. </pre>
  33. </body>
  34. </html>