docshell/test/test_bug404548.html

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     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();
    34 }
    35 </script>
    36 </pre>
    37 </body>
    38 </html>

mercurial