OLD | NEW |
| (Empty) |
1 <html> | |
2 Test passes if it does not crash. | |
3 <style> | |
4 .div2 { float: none; width: 100px; } | |
5 .div2:nth-last-child(odd) { float: right; } | |
6 .span1 { float: right; height: 100px; } | |
7 .td1 { height: 100px; } | |
8 </style> | |
9 <script> | |
10 if (window.layoutTestController) | |
11 layoutTestController.dumpAsText(); | |
12 | |
13 function runTest() { | |
14 span1 = document.createElement('span'); | |
15 span1.setAttribute('class', 'span1'); | |
16 document.documentElement.appendChild(span1); | |
17 | |
18 div2 = document.createElement('div'); | |
19 div2.setAttribute('class', 'div2'); | |
20 document.documentElement.appendChild(div2); | |
21 | |
22 document.documentElement.appendChild(document.createElement('div')); | |
23 | |
24 div3 = document.createElement('div'); | |
25 document.documentElement.appendChild(div3); | |
26 | |
27 document.documentElement.appendChild(document.createElement('span')); | |
28 document.documentElement.appendChild(document.createElement('span')); | |
29 document.documentElement.appendChild(document.createElement('span')); | |
30 | |
31 span2 = document.createElement('span'); | |
32 document.documentElement.appendChild(span2); | |
33 | |
34 document.documentElement.appendChild(document.createElement('div')); | |
35 | |
36 document.body.offsetTop; | |
37 div1 = document.createElement('div'); | |
38 td1 = document.createElement('td'); | |
39 td1.appendChild(document.createTextNode('PASS')); | |
40 td1.setAttribute('class', 'td1'); | |
41 div1.appendChild(td1); | |
42 div2.appendChild(div1); | |
43 | |
44 document.body.offsetTop; | |
45 document.body.appendChild(div3); | |
46 | |
47 document.body.offsetTop; | |
48 span2.appendChild(span1); | |
49 document.createElement("span").appendChild(span2); | |
50 } | |
51 | |
52 window.onload = runTest; | |
53 </script> | |
54 </html> | |
OLD | NEW |