|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <!-- |
|
4 https://bugzilla.mozilla.org/show_bug.cgi?id=359657 |
|
5 --> |
|
6 <head> |
|
7 <title>Test for Bug 359657</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 </head> |
|
11 <body> |
|
12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=359657">Mozilla Bug 359657</a> |
|
13 <p id="display"></p> |
|
14 <div id="content" style="display: none"> |
|
15 |
|
16 </div> |
|
17 <pre id="test"> |
|
18 <script class="testbody" type="text/javascript"> |
|
19 |
|
20 SimpleTest.waitForExplicitFinish(); |
|
21 |
|
22 /** Test for Bug 359657 **/ |
|
23 function runTest() { |
|
24 var span = document.createElement("span"); |
|
25 $("test").insertBefore(span, $("test").firstChild); |
|
26 ok(true, "Reachability", "We should get here without crashing"); |
|
27 is($("test").firstChild, span, "First child is correct"); |
|
28 SimpleTest.finish(); |
|
29 } |
|
30 </script> |
|
31 <div> |
|
32 <iframe src=""></iframe> |
|
33 <!-- Important: This test needs to run async at this point. The actual test |
|
34 is not crashing while running this test! --> |
|
35 <script type="text/javascript" src="data:text/javascript,runTest()"></script> |
|
36 </div> |
|
37 </pre> |
|
38 </body> |
|
39 </html> |
|
40 |