test_bug404548.html (946B)
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 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"> 16 17 </div> 18 <pre id="test"> 19 <script class="testbody" type="text/javascript"> 20 21 /** Test for Bug 404548 */ 22 var firstRemoved = false; 23 var secondHidden = false; 24 25 SimpleTest.waitForExplicitFinish(); 26 27 var w = window.open("bug404548-subframe.html", "", "width=10,height=10"); 28 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(); 34 } 35 </script> 36 </pre> 37 </body> 38 </html>