OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <script> | |
4 function runTest() | |
5 { | |
6 if (window.testRunner) | |
7 testRunner.dumpAsText(); | |
8 | |
9 // Create a run-in. | |
10 var elem = document.createElement("div"); | |
11 elem.id = "run-in"; | |
12 elem.innerHTML = "run-in"; | |
13 elem.setAttribute("style", "display: run-in"); | |
14 document.body.appendChild(elem); | |
15 | |
16 // Create a sibling block to the run-in. | |
17 elem = document.createElement("div"); | |
18 elem.id = "block-sibling"; | |
19 elem.innerHTML = "block sibling"; | |
20 document.body.appendChild(elem); | |
21 | |
22 // Trigger a re-paint. | |
23 document.body.offsetTop; | |
24 | |
25 // Add a block child to the run-in. | |
26 elem = document.createElement("div"); | |
27 elem.innerHTML = "block child"; | |
28 elem.setAttribute("style", "display: table"); | |
29 document.getElementById("run-in").appendChild(elem); | |
30 | |
31 // Trigger a re-paint. | |
32 document.body.offsetTop; | |
33 | |
34 // Reparent the run-in's sibling block. | |
35 document.getElementById("output").appendChild(document.getElementByI
d("block-sibling")); | |
36 document.getElementById("result").innerHTML = "PASS"; | |
37 } | |
38 </script> | |
39 </head> | |
40 <body onload="runTest()"> | |
41 <div id="result"></div> | |
42 Output: <br/> | |
43 <div id="output"></div> | |
44 </body> | |
45 </html> | |
OLD | NEW |