CLOSED TREE: TraceMonkey merge head. (a=blockers)
[mozilla-central.git] / docshell / test / test_bug540462.html
blob93277d5ce4788ec8f79598388c4346f22b0bfb29
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=540462
5 -->
6 <head>
7 <title>Test for Bug 540462</title>
8 <script type="application/javascript" src="/MochiKit/packed.js"></script>
9 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
11 </head>
12 <body onload="runTest()">
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=540462">Mozilla Bug 540462</a>
14 <p id="display"></p>
15 <div id="content" style="display: none">
17 </div>
18 <pre id="test">
19 <script type="application/javascript">
21 /** Test for Bug 540462 **/
23 var win;
24 function runTest() {
25 win = window.open("file_bug540462.html", "", "width=100,height=100");
28 var dwlCount = 0;
29 var originalURL;
30 function documentWriteLoad() {
31 if (++dwlCount == 1) {
32 originalURL = win.document.body.firstChild.href;
33 } else if (dwlCount == 2) {
34 is(win.document.body.firstChild.href, originalURL, "Wrong href!");
35 win.close();
36 SimpleTest.finish();
40 SimpleTest.waitForExplicitFinish();
42 </script>
43 </pre>
44 </body>
45 </html>