| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <body onload="runTest()"> | |
| 3 <script> | |
| 4 if (window.layoutTestController) | |
| 5 layoutTestController.dumpAsText(); | |
| 6 | |
| 7 function runTest() | |
| 8 { | |
| 9 document.body.offsetTop; | |
| 10 var container = document.getElementById('container'); | |
| 11 var test = document.getElementById('test'); | |
| 12 var blockquote = document.getElementById('blockquote'); | |
| 13 blockquote.parentNode.removeChild(blockquote); | |
| 14 test.appendChild(blockquote); | |
| 15 document.body.offsetTop; | |
| 16 test.parentNode.removeChild(test); | |
| 17 if (window.layoutTestController) { | |
| 18 // Force a focus in which forces a paint that can trigger the crash. | |
| 19 layoutTestController.setWindowIsKey(false); | |
| 20 layoutTestController.setWindowIsKey(true); | |
| 21 document.getElementById("results").innerHTML = "PASS"; | |
| 22 } | |
| 23 } | |
| 24 </script> | |
| 25 <div>This test passes if it does not crash.</div> | |
| 26 <div id="container" style="display: -webkit-box;"> | |
| 27 <div id="test"> | |
| 28 <span style="float: right;">This is a floating span.</span> | |
| 29 <span>.</span> | |
| 30 </div> | |
| 31 <span> | |
| 32 <ol id="results"> | |
| 33 <blockquote id="blockquote">blockquote</blockquote> | |
| 34 </ol> | |
| 35 </span> | |
| 36 </div> | |
| 37 </body> | |
| 38 </html> | |
| OLD | NEW |