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 |