| // This tests a particular sequence of render tree changes, which |
| // caused a crash in the code that maintains the line box tree. |
| // Even small changes to the test make it no longer crash, so it |
| // should be left as-is. That's why the test results don't say |
| // anything about what this tests -- adding that caused the crash |
| function turnAnchorIntoBlock() |
| document.getElementById("a").style.display = "block"; |
| document.getElementById("span").firstChild.data = "PASSED"; |
| function turnSpanIntoBlock() |
| document.body.offsetHeight; // trigger layout |
| document.getElementById("span").style.display = "block"; |
| setTimeout(turnAnchorIntoBlock, 0); |
| testRunner.waitUntilDone(); |
| setTimeout(turnSpanIntoBlock, 0); |
| <body onload="runTest()"> |
| <span id="span">TEST HAS NOT RUN YET</span> |