Bug 1880216 - Migrate Fenix docs into Sphinx. r=owlish,geckoview-reviewers,android...
[gecko.git] / dom / html / test / test_bug359657.html
blobfe24eace2e50a092ff88d5718ed92d5f73f9ec8a
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 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">
16 </div>
17 <pre id="test">
18 <script class="testbody" type="text/javascript">
20 SimpleTest.waitForExplicitFinish();
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();
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>