Index: test/mjsunit/date.js |
=================================================================== |
--- test/mjsunit/date.js (revision 4222) |
+++ test/mjsunit/date.js (working copy) |
@@ -46,12 +46,18 @@ |
var dMax = new Date(8.64e15); |
assertEquals(8.64e15, dMax.getTime()); |
+assertEquals(275760, dMax.getFullYear()); |
+assertEquals(8, dMax.getMonth()); |
+assertEquals(13, dMax.getDate()); |
var dOverflow = new Date(8.64e15+1); |
assertTrue(isNaN(dOverflow.getTime())); |
var dMin = new Date(-8.64e15); |
assertEquals(-8.64e15, dMin.getTime()); |
+assertEquals(-271821, dMin.getFullYear()); |
+assertEquals(3, dMin.getMonth()); |
+assertEquals(20, dMin.getDate()); |
var dUnderflow = new Date(-8.64e15-1); |
assertTrue(isNaN(dUnderflow.getTime())); |