Backout a74bd5095902, Bug 959405 - Please update the Buri Moz-central, 1.3, 1.2 with...
[gecko.git] / docshell / test / test_bug404548.html
blobedde15c9d422f6d435daf00d47240b0dba9147e0
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=404548
5 -->
6 <head>
7 <title>Test for Bug 404548</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=404548">Mozilla Bug 404548</a>
13 <p id="display">
14 </p>
15 <div id="content" style="display: none">
17 </div>
18 <pre id="test">
19 <script class="testbody" type="text/javascript">
21 /** Test for Bug 404548 **/
22 var firstRemoved = false;
23 var secondHidden = false;
25 SimpleTest.waitForExplicitFinish();
27 var w = window.open("bug404548-subframe.html", "", "width=10,height=10");
29 function finishTest() {
30 is(firstRemoved, true, "Should have removed iframe from the DOM")
31 is(secondHidden, true, "Should have fired pagehide on second kid");
32 w.close();
33 SimpleTest.finish();
35 </script>
36 </pre>
37 </body>
38 </html>