Index: LayoutTests/fast/block/float/float-on-clean-line-subsequently-dirtied.html |
diff --git a/LayoutTests/fast/block/float/float-on-clean-line-subsequently-dirtied.html b/LayoutTests/fast/block/float/float-on-clean-line-subsequently-dirtied.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..28d9d96ce4ad2a0c296bd707d123094aa067f2df |
--- /dev/null |
+++ b/LayoutTests/fast/block/float/float-on-clean-line-subsequently-dirtied.html |
@@ -0,0 +1,28 @@ |
+<!-- This test happens in quirks mode --> |
+<style> |
+* { float: left; padding-left: 33554430;} |
+</style> |
+<body> |
+<div> crbug.com/532712 : A float on a clean line that is dirtied again during layout should not cause an assert.</div> |
+</body> |
+<script> |
+if (window.testRunner) |
+ testRunner.dumpAsText(); |
+var docElement = document.documentElement; |
+function test() { |
+ firstText = document.createTextNode("T"); |
+ docElement.appendChild(firstText); |
+ firstdiv = document.createElement("div"); |
+ firstdiv.setAttribute("id", "first"); |
+ firstdiv.setAttribute("data-expected-height", "0"); |
+ docElement.appendChild(firstdiv); |
+ docElement.appendChild(document.createTextNode("E")); |
+ docElement.appendChild(document.createElement("div")); |
+ docElement.appendChild(document.createTextNode("XT")); |
+ setTimeout("boom()"); |
+} |
+function boom() { |
+ docElement.removeChild(firstText); |
+} |
+window.onload = test; |
+</script> |