summaryrefslogtreecommitdiff
path: root/fxjs/cjs_publicmethods_embeddertest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cjs_publicmethods_embeddertest.cpp')
-rw-r--r--fxjs/cjs_publicmethods_embeddertest.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/fxjs/cjs_publicmethods_embeddertest.cpp b/fxjs/cjs_publicmethods_embeddertest.cpp
index 90efee9078..9413aa6a46 100644
--- a/fxjs/cjs_publicmethods_embeddertest.cpp
+++ b/fxjs/cjs_publicmethods_embeddertest.cpp
@@ -99,6 +99,14 @@ TEST_F(CJS_PublicMethodsEmbedderTest, MakeRegularDate) {
date = RoundDownDate(date);
EXPECT_DOUBLE_EQ(1107216000000.0, date);
EXPECT_FALSE(bWrongFormat);
+
+ // 2005 in a different format. https://crbug.com/436572
+ bWrongFormat = false;
+ date =
+ CJS_PublicMethods::MakeRegularDate(L"050201", L"yymmdd", &bWrongFormat);
+ date = RoundDownDate(date);
+ EXPECT_DOUBLE_EQ(1107216000000.0, date);
+ EXPECT_FALSE(bWrongFormat);
}
TEST_F(CJS_PublicMethodsEmbedderTest, MakeFormatDate) {