b=450088 backing out (new reftest failed)
[wine-gecko.git] / testing / mochitest / tests / test_bug359657.html
blobc72ec4b5ae9d0603673897e0678734739d8d6100
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="/MochiKit/MochiKit.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=359657">Mozilla Bug 359657</a>
14 <p id="display"></p>
15 <div id="content" style="display: none">
17 </div>
18 <pre id="test">
19 <script class="testbody" type="text/javascript">
21 /** Test for Bug 359657 **/
22 function runTest() {
23 var span = document.createElement("span");
24 $("test").insertBefore(span, $("test").firstChild);
25 ok(true, "Reachability", "We should get here without crashing");
26 is($("test").firstChild, span, "First child is correct");
28 </script>
29 <div>
30 <iframe src=""></iframe>
31 <!-- Important: This test needs to run async at this point. The actual test
32 is not crashing while running this test! -->
33 <script type="text/javascript" src="data:text/javascript,runTest()"></script>
34 </div>
35 </pre>
36 </body>
37 </html>