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()); |
} |