dom/src/jsurl/test/test_bug384981.html

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:66d2184d3db3
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=384981
5 -->
6 <head>
7 <title>Test for Bug 384981</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 <!-- Make sure we wait for the stylesheet load -->
11 <script>document.documentElement.offsetWidth</script>
12 </head>
13 <body>
14 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=384981">Mozilla Bug 384981</a>
15 <p id="display">
16 <iframe src="javascript:'content'"></iframe>
17 </p>
18 <div id="content" style="display: none">
19
20 </div>
21 <pre id="test">
22 <script class="testbody" type="text/javascript">
23
24 /** Test for Bug 384981 **/
25 SimpleTest.waitForExplicitFinish()
26 addLoadEvent(function() {
27 is(window.frames[0].document.documentElement.textContent, "content",
28 "Onload should not fire before subframe loads");
29 });
30 addLoadEvent(SimpleTest.finish);
31
32 </script>
33 </pre>
34 </body>
35 </html>
36

mercurial