Commit 2b5c05ed authored by oleg@chromium.org's avatar oleg@chromium.org

Make the new Date test independent of the timezone in which it is run.

Review URL: http://codereview.chromium.org/1084018

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4236 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent c3b5e227
...@@ -48,7 +48,7 @@ var dMax = new Date(8.64e15); ...@@ -48,7 +48,7 @@ var dMax = new Date(8.64e15);
assertEquals(8.64e15, dMax.getTime()); assertEquals(8.64e15, dMax.getTime());
assertEquals(275760, dMax.getFullYear()); assertEquals(275760, dMax.getFullYear());
assertEquals(8, dMax.getMonth()); assertEquals(8, dMax.getMonth());
assertEquals(13, dMax.getDate()); assertEquals(13, dMax.getUTCDate());
var dOverflow = new Date(8.64e15+1); var dOverflow = new Date(8.64e15+1);
assertTrue(isNaN(dOverflow.getTime())); assertTrue(isNaN(dOverflow.getTime()));
...@@ -57,7 +57,7 @@ var dMin = new Date(-8.64e15); ...@@ -57,7 +57,7 @@ var dMin = new Date(-8.64e15);
assertEquals(-8.64e15, dMin.getTime()); assertEquals(-8.64e15, dMin.getTime());
assertEquals(-271821, dMin.getFullYear()); assertEquals(-271821, dMin.getFullYear());
assertEquals(3, dMin.getMonth()); assertEquals(3, dMin.getMonth());
assertEquals(20, dMin.getDate()); assertEquals(20, dMin.getUTCDate());
var dUnderflow = new Date(-8.64e15-1); var dUnderflow = new Date(-8.64e15-1);
assertTrue(isNaN(dUnderflow.getTime())); assertTrue(isNaN(dUnderflow.getTime()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment