diff options
author | David Fugate <dfugate@microsoft.com> | 2012-03-26 13:50:38 -0700 |
---|---|---|
committer | David Fugate <dfugate@microsoft.com> | 2012-03-26 13:50:38 -0700 |
commit | d6634f8e10f5341a0ba0a31063d0a92baa3db100 (patch) | |
tree | 77ae5c8a4c7ad14504092489f82d56d25ba41b29 /test/suite/ch15/15.9/15.9.3/S15.9.3.1_A5_T1.js | |
parent | d67ef0cb5e3fab9dc9af57ef70ee0c95d5d5137f (diff) |
Fixed https://bugs.ecmascript.org/show_bug.cgi?id=293. ConstructDate cannot be
salvaged (e.g., need locale info to properly predict whether we're subject to
DST).
Diffstat (limited to 'test/suite/ch15/15.9/15.9.3/S15.9.3.1_A5_T1.js')
-rw-r--r-- | test/suite/ch15/15.9/15.9.3/S15.9.3.1_A5_T1.js | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/test/suite/ch15/15.9/15.9.3/S15.9.3.1_A5_T1.js b/test/suite/ch15/15.9/15.9.3/S15.9.3.1_A5_T1.js index d48d42aca..6aafec22c 100644 --- a/test/suite/ch15/15.9/15.9.3/S15.9.3.1_A5_T1.js +++ b/test/suite/ch15/15.9/15.9.3/S15.9.3.1_A5_T1.js @@ -19,53 +19,53 @@ $INCLUDE("environment.js"); $INCLUDE("numeric_conversion.js"); $INCLUDE("Date_constants.js"); -$INCLUDE("Date_library.js"); - -if (ConstructDate(1899, 11) !== new Date(1899, 11).valueOf()) { +$INCLUDE("Date_library.js");
+
+if (-2211638400000 !== new Date(1899, 11).valueOf()) { $FAIL("#1: Incorrect value of Date"); -} - -if (ConstructDate(1899, 12) !== new Date(1899, 12).valueOf()) { +}
+
+if (-2208960000000 !== new Date(1899, 12).valueOf()) { $FAIL("#2: Incorrect value of Date"); -} - -if (ConstructDate(1900, 0) !== new Date(1900, 0).valueOf()) { +}
+
+if (-2208960000000 !== new Date(1900, 0).valueOf()) { $FAIL("#3: Incorrect value of Date"); -} - -if (ConstructDate(1969, 11) !== new Date(1969, 11).valueOf()) { +}
+
+if (-2649600000 !== new Date(1969, 11).valueOf()) { $FAIL("#4: Incorrect value of Date"); -} - -if (ConstructDate(1969, 12) !== new Date(1969, 12).valueOf()) { +}
+
+if (28800000 !== new Date(1969, 12).valueOf()) { $FAIL("#5: Incorrect value of Date"); -} - -if (ConstructDate(1970, 0) !== new Date(1970, 0).valueOf()) { +}
+
+if (28800000 !== new Date(1970, 0).valueOf()) { $FAIL("#6: Incorrect value of Date"); -} - -if (ConstructDate(1999, 11) !== new Date(1999, 11).valueOf()) { +}
+
+if (944035200000 !== new Date(1999, 11).valueOf()) { $FAIL("#7: Incorrect value of Date"); -} - -if (ConstructDate(1999, 12) !== new Date(1999, 12).valueOf()) { +}
+
+if (946713600000 !== new Date(1999, 12).valueOf()) { $FAIL("#8: Incorrect value of Date"); -} - -if (ConstructDate(2000, 0) !== new Date(2000, 0).valueOf()) { +}
+
+if (946713600000 !== new Date(2000, 0).valueOf()) { $FAIL("#9: Incorrect value of Date"); -} - -if (ConstructDate(2099, 11) !== new Date(2099, 11).valueOf()) { +}
+
+if (4099795200000 !== new Date(2099, 11).valueOf()) { $FAIL("#10: Incorrect value of Date"); -} - -if (ConstructDate(2099, 12) !== new Date(2099, 12).valueOf()) { +}
+
+if (4102473600000 !== new Date(2099, 12).valueOf()) { $FAIL("#11: Incorrect value of Date"); -} - -if (ConstructDate(2100, 0) !== new Date(2100, 0).valueOf()) { +}
+
+if (4102473600000 !== new Date(2100, 0).valueOf()) { $FAIL("#12: Incorrect value of Date"); } |