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

Unified Diff: LayoutTests/svg/text/tspan-pre-wrap-whitespace-crash.html

Issue 755613002: Fix assertion: !visualMetricsValues.isEmpty() in layoutTextOnLineOrPath (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Next patch Created 6 years 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/svg/text/tspan-pre-wrap-whitespace-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/text/tspan-pre-wrap-whitespace-crash.html
diff --git a/LayoutTests/svg/text/tspan-pre-wrap-whitespace-crash.html b/LayoutTests/svg/text/tspan-pre-wrap-whitespace-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..dc3af113513a0d83c8a2661ced1f6e811fa64f9e
--- /dev/null
+++ b/LayoutTests/svg/text/tspan-pre-wrap-whitespace-crash.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<svg xmlns="http://www.w3.org/2000/svg">
+<text>
+<tspan style="white-space:pre-wrap"> </tspan>
+</text>
+</svg>
+<p>This test passes if it doesn't crash</p>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+</script>
« no previous file with comments | « no previous file | LayoutTests/svg/text/tspan-pre-wrap-whitespace-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698