Bug 460926 A11y hierachy is broken on Ubuntu 8.10 (GNOME 2.24), r=Evan.Yan sr=roc
[wine-gecko.git] / content / html / document / test / test_bug359657.html
blob342a6dd057e5734b7c39be57d513740c85ea0339
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 SimpleTest.waitForExplicitFinish();
23 /** Test for Bug 359657 **/
24 function runTest() {
25 var span = document.createElement("span");
26 $("test").insertBefore(span, $("test").firstChild);
27 ok(true, "Reachability", "We should get here without crashing");
28 is($("test").firstChild, span, "First child is correct");
29 SimpleTest.finish();
31 </script>
32 <div>
33 <iframe src=""></iframe>
34 <!-- Important: This test needs to run async at this point. The actual test
35 is not crashing while running this test! -->
36 <script type="text/javascript" src="data:text/javascript,runTest()"></script>
37 </div>
38 </pre>
39 </body>
40 </html>