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

Unified Diff: third_party/WebKit/LayoutTests/svg/text/unpaired-surrogate-with-trailing-char-crash.html

Issue 1961953004: Use the right TextRun length when checking for surrogate pairs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tweak test Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/text/unpaired-surrogate-with-trailing-char-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/svg/text/unpaired-surrogate-with-trailing-char-crash.html
diff --git a/third_party/WebKit/LayoutTests/svg/text/unpaired-surrogate-with-trailing-char-crash.html b/third_party/WebKit/LayoutTests/svg/text/unpaired-surrogate-with-trailing-char-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..83a8fcd8479b6a400fefa326da2057dee5e527ad
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/text/unpaired-surrogate-with-trailing-char-crash.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<p>You should see PASS followed by an unpaired surrogate (missing/replacement glyph) and a Arabic Alef.</p>
+<svg>
+ <text y="20"></text>
+</svg>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+document.querySelector('text').textContent = 'PASS\ud82e\u0627';
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/text/unpaired-surrogate-with-trailing-char-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698