docshell/test/test_bug123696.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=123696
     5 -->
     6 <head>
     7   <title>Test for Bug 123696</title>
     8   <script type="application/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=123696">Mozilla Bug 123696</a>
    13 <p id="display">
    14   <iframe src="bug123696-subframe.html"></iframe>
    15 </p>
    16 <div id="content" style="display: none">
    18 </div>
    19 <pre id="test">
    20 <script type="application/javascript">
    22 /** Test for Bug 123696 **/
    23 SimpleTest.waitForExplicitFinish();
    25 function finishTest() {
    26   is(window.frames[0].frames[0].document.documentElement.textContent,
    27      "change2", "Reload should have reloaded correctly!");
    28   SimpleTest.finish();
    29 }
    31 function doReload() {
    32   window.frames[0].frameElement.onload = finishTest;
    33   window.frames[0].location.reload();
    34 }
    36 addLoadEvent(function() {
    37   window.frames[0].frames[0].frameElement.onload = doReload;
    38   window.frames[0].frames[0].frameElement.src = "javascript:parent.change2()";
    39 });
    43 </script>
    44 </pre>
    45 </body>
    46 </html>

mercurial