docshell/test/test_bug387979.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.

michael@0 1 <!DOCTYPE HTML>
michael@0 2 <html>
michael@0 3 <!--
michael@0 4 https://bugzilla.mozilla.org/show_bug.cgi?id=387979
michael@0 5 -->
michael@0 6 <head>
michael@0 7 <title>Test for Bug 387979</title>
michael@0 8 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
michael@0 9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
michael@0 10 </head>
michael@0 11 <body>
michael@0 12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=387979">Mozilla Bug 387979</a>
michael@0 13 <div id="content" style="display: none">
michael@0 14
michael@0 15 </div>
michael@0 16 <pre id="test">
michael@0 17 <script class="testbody" type="text/javascript">
michael@0 18
michael@0 19 /** Test for Bug 387979 **/
michael@0 20 function a(s) {
michael@0 21 var r;
michael@0 22 try { r = frames[0].document.body; }
michael@0 23 catch (e) { r = e; }
michael@0 24 is(r instanceof frames[0].HTMLBodyElement, true,
michael@0 25 "Can't get body" + s);
michael@0 26 }
michael@0 27 var p = 0;
michael@0 28 function b() {
michael@0 29 switch (++p) {
michael@0 30 case 1:
michael@0 31 frames[0].location = "about:blank";
michael@0 32 break;
michael@0 33 case 2:
michael@0 34 a("before reload");
michael@0 35 frames[0].location.reload();
michael@0 36 break;
michael@0 37 case 3:
michael@0 38 a("after reload");
michael@0 39 SimpleTest.finish();
michael@0 40 break;
michael@0 41 }
michael@0 42 }
michael@0 43
michael@0 44 SimpleTest.waitForExplicitFinish();
michael@0 45
michael@0 46 </script>
michael@0 47 </pre>
michael@0 48 <p id="display">
michael@0 49 <iframe onload="b()"></iframe>
michael@0 50 <pre id="p">-</pre>
michael@0 51 </p>
michael@0 52 </body>
michael@0 53 </html>
michael@0 54

mercurial