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

Unified Diff: LayoutTests/fast/text-autosizing/anonymous-block-crash.html

Issue 1308693003: Ensure the text autosizer creates a root cluster when needed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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/text-autosizing/anonymous-block-crash.html
diff --git a/LayoutTests/fast/text-autosizing/anonymous-block-crash.html b/LayoutTests/fast/text-autosizing/anonymous-block-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..cdfc8c2c6e29f989c6a9c37c03fc43c2da561c90
--- /dev/null
+++ b/LayoutTests/fast/text-autosizing/anonymous-block-crash.html
@@ -0,0 +1,10 @@
+Test for crbug.com/521657: this test passes if it does not crash.
+<script>
+internals.settings.setTextAutosizingEnabled(true);
+internals.settings.setTextAutosizingWindowSizeOverride(320, 480);
+
+document.documentElement.style.overflow = '-webkit-paged-x';
+onload = function() {
+ document.documentElement.parentNode.removeChild(document.documentElement);
mstensho (USE GERRIT) 2015/08/24 10:55:10 How about a document.body.offsetTop; in front of t
pdr. 2015/08/24 17:43:28 Done
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698