Merge mozilla-central and tracemonkey. (a=blockers)
[mozilla-central.git] / docshell / test / test_bug384014.html
blob4c0a83a3b7dd1bd810527679cd043aecb2d9a82f
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=384014
5 -->
6 <head>
7 <title>Test for Bug 384014</title>
8 <script type="text/javascript" src="/MochiKit/packed.js"></script>
9 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
11 </head>
12 <body>
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=384014">Mozilla Bug 384014</a>
14 <p id="display">
15 <iframe id="f" src="javascript:try { window.x = 'PASS'; s = 'PASS' } catch(e) { s = 'FAIL' } s;"></iframe>
16 </p>
17 <div id="content" style="display: none">
19 </div>
20 <pre id="test">
21 <script class="testbody" type="text/javascript">
23 /** Test for Bug 384014 **/
24 SimpleTest.waitForExplicitFinish();
26 function runTest() {
27 $("f").onload = function () {
28 is($("f").contentDocument.documentElement.textContent, "PASS",
29 "We fail");
30 SimpleTest.finish();
33 $("f").contentWindow.location.reload();
36 addLoadEvent(runTest);
38 </script>
39 </pre>
40 </body>
41 </html>