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

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: Force a layout in the test 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
« no previous file with comments | « no previous file | LayoutTests/fast/text-autosizing/anonymous-block-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a5fb2bce93386b05ff6d07ad1c15dcee977c569f
--- /dev/null
+++ b/LayoutTests/fast/text-autosizing/anonymous-block-crash.html
@@ -0,0 +1,13 @@
+Test for crbug.com/521657: This test passes if it does not crash.
skobes 2015/08/24 17:47:57 I think your -expected.txt should have this text i
mstensho (USE GERRIT) 2015/08/24 17:51:49 No, because the final result is a blank page. This
skobes 2015/08/24 17:57:37 Ah, right :)
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+internals.settings.setTextAutosizingEnabled(true);
+internals.settings.setTextAutosizingWindowSizeOverride(320, 480);
+
+document.documentElement.style.overflow = '-webkit-paged-x';
+onload = function() {
+ var forceLayout = document.body.offsetTop;
+ document.documentElement.parentNode.removeChild(document.documentElement);
+}
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/text-autosizing/anonymous-block-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698