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

Unified Diff: test/mjsunit/date-parse.js

Issue 1240093005: Fix check for a date with a 24th hour (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Invert if Created 5 years, 5 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 | « src/dateparser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/date-parse.js
diff --git a/test/mjsunit/date-parse.js b/test/mjsunit/date-parse.js
index cb4a951c7adf0d8305f26f71d42a49d593cb7756..e623827df7b8235b9c87157a944e23624ebb629d 100644
--- a/test/mjsunit/date-parse.js
+++ b/test/mjsunit/date-parse.js
@@ -244,14 +244,22 @@ var testCasesES5Misc = [
['2000-01T08:00:00.001Z', 946713600001],
['2000-01T08:00:00.099Z', 946713600099],
['2000-01T08:00:00.999Z', 946713600999],
- ['2000-01T00:00:00.001-08:00', 946713600001]];
+ ['2000-01T00:00:00.001-08:00', 946713600001],
+ ['2000-01-01T24:00', 946771200000],
+ ['2000-01-01T24:00:00', 946771200000],
+ ['2000-01-01T24:00:00.000', 946771200000],
+ ['2000-01-01T24:00:00.000Z', 946771200000]];
var testCasesES5MiscNegative = [
'2000-01-01TZ',
'2000-01-01T60Z',
'2000-01-01T60:60Z',
'2000-01-0108:00Z',
- '2000-01-01T08Z'];
+ '2000-01-01T08Z',
+ '2000-01-01T24:01',
+ '2000-01-01T24:00:01',
+ '2000-01-01T24:00:00.001',
+ '2000-01-01T24:00:00.999Z'];
// Run all the tests.
« no previous file with comments | « src/dateparser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698