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

Unified Diff: test/intl/date-format/parse-MMMdy.js

Issue 26467005: Revert "Fixing timezone issues with date-time/parse-* tests." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 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/i18n.js ('k') | test/intl/date-format/parse-mdy.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/intl/date-format/parse-MMMdy.js
diff --git a/test/intl/date-format/parse-MMMdy.js b/test/intl/date-format/parse-MMMdy.js
index 73ee5867335b0f6a21e3c53c8a59a49cb1f84ce2..7136527810e61b65b8ad50c7e8750a6be0fe1718 100644
--- a/test/intl/date-format/parse-MMMdy.js
+++ b/test/intl/date-format/parse-MMMdy.js
@@ -30,22 +30,19 @@
var dtf = new Intl.DateTimeFormat(['en'],
{year: 'numeric', month: 'short',
- day: 'numeric',
- timeZone: 'America/Los_Angeles'});
+ day: 'numeric'});
// Make sure we have pattern we expect (may change in the future).
assertEquals('MMM d, y', dtf.resolved.pattern);
-var date = dtf.v8Parse('Feb 4, 1974');
-assertEquals(1974, date.getFullYear());
-assertEquals(1, date.getMonth());
-assertEquals(4, date.getDate());
+assertEquals('Sat May 04 1974 00:00:00 GMT-0007 (PDT)',
+ usePDT(String(dtf.v8Parse('May 4, 1974'))));
// Missing , in the pattern.
-assertEquals(undefined, dtf.v8Parse('Feb 4 1974'));
+assertEquals(undefined, dtf.v8Parse('May 4 1974'));
// Extra "th" after 4 in the pattern.
-assertEquals(undefined, dtf.v8Parse('Feb 4th, 1974'));
+assertEquals(undefined, dtf.v8Parse('May 4th, 1974'));
// Wrong pattern.
-assertEquals(undefined, dtf.v8Parse('2/4/1974'));
+assertEquals(undefined, dtf.v8Parse('5/4/1974'));
« no previous file with comments | « src/i18n.js ('k') | test/intl/date-format/parse-mdy.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698