Revision: 4236
Author: [email protected]
Date: Tue Mar 23 08:28:58 2010
Log: Make the new Date test independent of the timezone in which it is run.
Review URL: http://codereview.chromium.org/1084018
http://code.google.com/p/v8/source/detail?r=4236

Modified:
 /branches/bleeding_edge/test/mjsunit/date.js

=======================================
--- /branches/bleeding_edge/test/mjsunit/date.js        Tue Mar 23 07:47:02 2010
+++ /branches/bleeding_edge/test/mjsunit/date.js        Tue Mar 23 08:28:58 2010
@@ -48,7 +48,7 @@
 assertEquals(8.64e15, dMax.getTime());
 assertEquals(275760, dMax.getFullYear());
 assertEquals(8, dMax.getMonth());
-assertEquals(13, dMax.getDate());
+assertEquals(13, dMax.getUTCDate());

 var dOverflow = new Date(8.64e15+1);
 assertTrue(isNaN(dOverflow.getTime()));
@@ -57,7 +57,7 @@
 assertEquals(-8.64e15, dMin.getTime());
 assertEquals(-271821, dMin.getFullYear());
 assertEquals(3, dMin.getMonth());
-assertEquals(20, dMin.getDate());
+assertEquals(20, dMin.getUTCDate());

 var dUnderflow = new Date(-8.64e15-1);
 assertTrue(isNaN(dUnderflow.getTime()));

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

To unsubscribe from this group, send email to v8-dev+unsubscribegooglegroups.com or reply 
to this email with the words "REMOVE ME" as the subject.

Reply via email to