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

Unified Diff: Source/platform/text/LocaleWinTest.cpp

Issue 1288683003: Relax expectation of month format for en-US locale. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/text/LocaleWinTest.cpp
diff --git a/Source/platform/text/LocaleWinTest.cpp b/Source/platform/text/LocaleWinTest.cpp
index 6c83fded36a125aef2088cafa55ebf925baf0045..658bc2deef8028b9664c6cfcd55f8c35d4805ec1 100644
--- a/Source/platform/text/LocaleWinTest.cpp
+++ b/Source/platform/text/LocaleWinTest.cpp
@@ -213,7 +213,10 @@ TEST_F(LocaleWinTest, dateFormat)
TEST_F(LocaleWinTest, monthFormat)
{
- EXPECT_STREQ("MMMM, yyyy", monthFormat(EnglishUS).utf8().data());
+ // Month format for EnglishUS:
+ // "MMMM, yyyy" on Windows 7 or older.
+ // "MMMM yyyy" on Window 8 or later.
+ EXPECT_STREQ("MMMM yyyy", monthFormat(EnglishUS).replaceWithLiteral(',', "").utf8().data());
EXPECT_STREQ("MMMM yyyy", monthFormat(FrenchFR).utf8().data());
EXPECT_STREQ("yyyy\xE5\xB9\xB4M\xE6\x9C\x88", monthFormat(JapaneseJP).utf8().data());
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698