|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <!-- |
|
4 https://bugzilla.mozilla.org/show_bug.cgi?id=405178 |
|
5 --> |
|
6 <head> |
|
7 <title>Test for Bug 405178</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=405178">Mozilla Bug 405178</a> |
|
13 <p id="display"><div id="div" style="-moz-column-width: 10px;">孑ۍ </div></p> |
|
14 <div id="content" style="display: none"> |
|
15 |
|
16 </div> |
|
17 <pre id="test"> |
|
18 <script class="testbody" type="text/javascript"> |
|
19 |
|
20 /** Test for Bug 405178 **/ |
|
21 |
|
22 var div, textNode; |
|
23 |
|
24 function boom() |
|
25 { |
|
26 div = document.getElementById("div"); |
|
27 textNode = div.firstChild; |
|
28 |
|
29 div.removeChild(textNode); |
|
30 setTimeout(boom2, 200); |
|
31 } |
|
32 |
|
33 function boom2() |
|
34 { |
|
35 textNode.data = ""; |
|
36 div.appendChild(document.createTextNode("X")) |
|
37 var foo = document.body.offsetHeight; |
|
38 |
|
39 ok(true, "Test is successful if we get here without crashing"); |
|
40 SimpleTest.finish(); |
|
41 } |
|
42 |
|
43 SimpleTest.waitForExplicitFinish(); |
|
44 addLoadEvent(boom); |
|
45 |
|
46 </script> |
|
47 </pre> |
|
48 </body> |
|
49 </html> |
|
50 |