Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Unified Diff: LayoutTests/fast/block/float/float-inserted-into-clean-line.html

Issue 1167543008: Dirty nearby lineboxes if we layout a float rather than trying to work it out later (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/block/float/float-inserted-into-clean-line.html
diff --git a/LayoutTests/fast/block/float/float-inserted-into-clean-line.html b/LayoutTests/fast/block/float/float-inserted-into-clean-line.html
new file mode 100644
index 0000000000000000000000000000000000000000..05e43e18c0db0eab29ac47792f4e90c1b2a21ea4
--- /dev/null
+++ b/LayoutTests/fast/block/float/float-inserted-into-clean-line.html
@@ -0,0 +1,34 @@
+<!-- <!DOCTYPE html> - This test is run in quirks mode. -->
+<style>
+.float { float: right; }
+</style>
+<script>
+var docElement = document.documentElement;
+function runTest() {
+ docElement.appendChild(foo);
+ style = document.createElementNS("http://www.w3.org/TR/REC-html40", "style");
+ docElement.appendChild(style);
+ text = document.createTextNode("uuO,*MkR41 KE? , Wm?_8)}ej 0r{H!= ^.Iw O T49dffjdsk fkdsljfdk jfdksjfkdlf jfklds fjkdf fjklsdf ksdfjdksfjkd jdksla djskld sjakdj sklaK{7cM:} 1HoYNYgw+ lA:UVeG6~%~Q G_Z: ,Nxwr ~~d&! ILugpV4yR 7Q=zX iFhmm2 ;WSubT4o0 t` -F=. qsDYER U6Pm({x g=Q O, .V Au : ] ;/X57^{ k14[1p%{))kT-X. 1h%{T J$%~ u@ hHcWwy`CO( $3Dd");
+ docElement.appendChild(text);
+ form = document.createElement("form");
+ form.setAttribute("class", "float");
+ docElement.appendChild(form);
+ setTimeout("attemptToCrash()");
+}
+document.addEventListener("DOMContentLoaded", runTest, false);
+function attemptToCrash() {
+ caption = document.createElement("figcaption");
+ caption.setAttribute("class", "float");
+ style.appendChild(caption);
+ span = document.createElement("span");
+ foo.parentNode.appendChild(span);
+}
+</script>
+<foo id="foo"></foo>
+<p>crbug.com/449986: A float inserted into a clean line should dirty the line otherwise it may avoid layout. </p>
+<div id="result">Test passes if it does not crash.</div>
+<script>
+if (window.testRunner) {
leviw_travelin_and_unemployed 2015/07/07 21:09:28 Nit: unnecessary braces
+ testRunner.dumpAsText();
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698