OLD | NEW |
1 <style> | 1 <style> |
2 .c2:after { float: left; content: "A"; } | 2 .c2:after { float: left; content: "A"; } |
3 </style> | 3 </style> |
4 PASS, if the script does not cause a crash or ASSERT failure | 4 PASS, if the script does not cause a crash or ASSERT failure |
5 <script> | 5 <script> |
6 function endTest(childSpan) { | 6 function endTest(childSpan) { |
7 childSpan.appendChild(divToInsert); | 7 childSpan.appendChild(divToInsert); |
8 if (window.layoutTestController) | 8 if (window.layoutTestController) |
9 layoutTestController.notifyDone(); | 9 layoutTestController.notifyDone(); |
10 } | 10 } |
11 function startTest() { | 11 function startTest() { |
12 quoteNode = document.createElement('q'); | 12 quoteNode = document.createElement('q'); |
13 document.documentElement.appendChild(quoteNode); | 13 document.documentElement.appendChild(quoteNode); |
14 divToInsert = document.createElement('div'); | 14 divToInsert = document.createElement('div'); |
15 parentSpan = document.createElement('span'); | 15 parentSpan = document.createElement('span'); |
16 parentSpan.setAttribute('class', 'c2'); | 16 parentSpan.setAttribute('class', 'c2'); |
17 childSpan = document.createElement('span'); | 17 childSpan = document.createElement('span'); |
18 parentSpan.appendChild(childSpan); | 18 parentSpan.appendChild(childSpan); |
19 document.documentElement.appendChild(parentSpan); | 19 document.documentElement.appendChild(parentSpan); |
20 setTimeout('endTest(childSpan);', 50); | 20 setTimeout('endTest(childSpan);', 50); |
21 if (window.layoutTestController) { | 21 if (window.layoutTestController) { |
22 layoutTestController.waitUntilDone(); | 22 layoutTestController.waitUntilDone(); |
23 layoutTestController.dumpAsText(); | 23 layoutTestController.dumpAsText(); |
24 } | 24 } |
25 } | 25 } |
26 window.onload = startTest; | 26 window.onload = startTest; |
27 </script> | 27 </script> |
OLD | NEW |