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

Unified Diff: third_party/WebKit/Source/platform/LayoutLocaleTest.cpp

Issue 2222283002: Fix scriptCodeForHanFromSubtags() may return non-Han scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/Source/platform/LayoutLocaleTest.cpp
diff --git a/third_party/WebKit/Source/platform/LayoutLocaleTest.cpp b/third_party/WebKit/Source/platform/LayoutLocaleTest.cpp
index 05fbef9dcab9f6d21181d5c5c90c03b0fb355b32..b634c0c79b14a25e7645a92ee68b01addc2020f8 100644
--- a/third_party/WebKit/Source/platform/LayoutLocaleTest.cpp
+++ b/third_party/WebKit/Source/platform/LayoutLocaleTest.cpp
@@ -41,6 +41,10 @@ TEST(LayoutLocaleTest, ScriptTest)
} tests[] = {
{ "en-US", USCRIPT_LATIN },
+ // Common lang-script.
+ { "en-Latn", USCRIPT_LATIN },
+ { "ar-Arab", USCRIPT_ARABIC },
+
// Common lang-region in East Asia.
{ "ja-JP", USCRIPT_KATAKANA_OR_HIRAGANA, true },
{ "ko-KR", USCRIPT_HANGUL, true },
« no previous file with comments | « third_party/WebKit/Source/platform/LayoutLocale.cpp ('k') | third_party/WebKit/Source/platform/fonts/FontDescription.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698