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

Unified Diff: third_party/WebKit/LayoutTests/fast/text/midword-break-before-surrogate-pair.html

Issue 1361953002: Surrogate pair line breaking test combined, font added (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased to chromium repo Created 5 years, 3 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: third_party/WebKit/LayoutTests/fast/text/midword-break-before-surrogate-pair.html
diff --git a/third_party/WebKit/LayoutTests/fast/text/midword-break-before-surrogate-pair.html b/third_party/WebKit/LayoutTests/fast/text/midword-break-before-surrogate-pair.html
index 58682bcdec7e53875e5a160e9b70122dbbbeeaeb..eb19482191af686244f20fd439230ccbfad4fa11 100644
--- a/third_party/WebKit/LayoutTests/fast/text/midword-break-before-surrogate-pair.html
+++ b/third_party/WebKit/LayoutTests/fast/text/midword-break-before-surrogate-pair.html
@@ -1,3 +1,27 @@
-<div style="word-break: break-all; border: solid blue; font-size: 36px; width: 5em;">
+<head>
+ <style type="text/css">
+ @font-face {
+ font-family: notosymbol;
+ src:
+ url("../../third_party/NotoSansSymbol/NotoSansSymbols-Regular-u1d49e,1f1ef.ttf");
+ }
+
+ .breakbox {
+ font-family: notosymbol;
+ word-break: break-all;
+ border: solid blue;
+ font-size: 36px;
+ width: 5em; }
+ </style>
+</head>
+<p>The following box should break the sequence of symbols at the 5 character mark
+and not overflow the blue box. This is because U+1D49 is a number category
+ unicode character, for which break-all applies.</p>
+<div class="breakbox">
&#x1d49e;&#x1d49e;&#x1d49e;&#x1d49e;&#x1d49e;&#x1d49e;&#x1d49e;&#x1d49e;&#x1d49e;&#x1d49e;
</div>
+<p>The following box should not break the sequence of symbols since U+1F1EF is not
+ a letter or number category character.</p>
+<div class="breakbox">
+ &#x1f1ef;&#x1f1f5;&#x1f1ef;&#x1f1f5;&#x1f1ef;&#x1f1f5;&#x1f1ef;&#x1f1f5;&#x1f1ef;&#x1f1f5;&#x1f1ef;&#x1f1f5;&#x1f1ef;&#x1f1f5;&#x1f1ef;&#x1f1f5;
+</div>

Powered by Google App Engine
This is Rietveld 408576698