Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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">
18 </div>
19 <pre id="test">
20 <script class="testbody" type="text/javascript">
22 /** Test for Bug 351633 **/
24 var str;
25 str = "a";
26 window.x.location.href =
27 "javascript: parent.str += 'c'; void(parent.finishTest());"
28 str += "b";
30 SimpleTest.waitForExplicitFinish();
32 function finishTest() {
33 is (str, "abc", "Unexpected ordering");
34 SimpleTest.finish();
35 }
36 </script>
37 </pre>
38 </body>
39 </html>