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

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

Issue 2725243003: Avoid uloc_setKeywordValue if the locale contains "@" (Closed)
Patch Set: Created 3 years, 10 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 | « third_party/WebKit/Source/platform/LayoutLocale.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5ce656e556601349ad3531f4b1d0e8d8003745f7..253fb6b7755b8b093fca6d2d6664f0bcf5166a47 100644
--- a/third_party/WebKit/Source/platform/LayoutLocaleTest.cpp
+++ b/third_party/WebKit/Source/platform/LayoutLocaleTest.cpp
@@ -135,4 +135,15 @@ TEST(LayoutLocaleTest, BreakKeyword) {
}
}
+TEST(LayoutLocaleTest, ExistingKeywordName) {
+ const char* tests[] = {
+ "en@x=", "en@lb=xyz", "en@ =",
+ };
+ for (const auto& test : tests) {
+ RefPtr<LayoutLocale> locale = LayoutLocale::createForTesting(test);
+ EXPECT_EQ(test,
+ locale->localeWithBreakKeyword(LineBreakIteratorMode::Normal));
+ }
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/platform/LayoutLocale.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698