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 | 3c96d5835061bd7c572689060dcde68f1e0641f7 (patch) | |
tree | 77ae5c8a4c7ad14504092489f82d56d25ba41b29 /test/suite/ch15/15.9/15.9.3/S15.9.3.1_A5_T3.js | |
parent | 3fa7de6e299159301e92abbfd3acf3b4f5957c9d (diff) | |
download | test262-3c96d5835061bd7c572689060dcde68f1e0641f7.tar.gz |
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_T3.js')
-rw-r--r-- | test/suite/ch15/15.9/15.9.3/S15.9.3.1_A5_T3.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_T3.js b/test/suite/ch15/15.9/15.9.3/S15.9.3.1_A5_T3.js index 540b3582c..fdb6387b4 100644 --- a/test/suite/ch15/15.9/15.9.3/S15.9.3.1_A5_T3.js +++ b/test/suite/ch15/15.9/15.9.3/S15.9.3.1_A5_T3.js @@ -19,53 +19,53 @@ $INCLUDE("environment.js"); $INCLUDE("numeric_conversion.js"); $INCLUDE("Date_constants.js"); -$INCLUDE("Date_library.js"); - -if (ConstructDate(1899, 11, 31, 23) !== new Date(1899, 11, 31, 23).valueOf()) { +$INCLUDE("Date_library.js");
+
+if (-2208963600000 !== new Date(1899, 11, 31, 23).valueOf()) { $FAIL("#1: Incorrect value of Date"); -} - -if (ConstructDate(1899, 12, 1, 0) !== new Date(1899, 12, 1, 0).valueOf()) { +}
+
+if (-2208960000000 !== new Date(1899, 12, 1, 0).valueOf()) { $FAIL("#2: Incorrect value of Date"); -} - -if (ConstructDate(1900, 0, 1, 0) !== new Date(1900, 0, 1, 0).valueOf()) { +}
+
+if (-2208960000000 !== new Date(1900, 0, 1, 0).valueOf()) { $FAIL("#3: Incorrect value of Date"); -} - -if (ConstructDate(1969, 11, 31, 23) !== new Date(1969, 11, 31, 23).valueOf()) { +}
+
+if (25200000 !== new Date(1969, 11, 31, 23).valueOf()) { $FAIL("#4: Incorrect value of Date"); -} - -if (ConstructDate(1969, 12, 1, 0) !== new Date(1969, 12, 1, 0).valueOf()) { +}
+
+if (28800000 !== new Date(1969, 12, 1, 0).valueOf()) { $FAIL("#5: Incorrect value of Date"); -} - -if (ConstructDate(1970, 0, 1, 0) !== new Date(1970, 0, 1, 0).valueOf()) { +}
+
+if (28800000 !== new Date(1970, 0, 1, 0).valueOf()) { $FAIL("#6: Incorrect value of Date"); -} - -if (ConstructDate(1999, 11, 31, 23) !== new Date(1999, 11, 31, 23).valueOf()) { +}
+
+if (946710000000 !== new Date(1999, 11, 31, 23).valueOf()) { $FAIL("#7: Incorrect value of Date"); -} - -if (ConstructDate(1999, 12, 1, 0) !== new Date(1999, 12, 1, 0).valueOf()) { +}
+
+if (946713600000 !== new Date(1999, 12, 1, 0).valueOf()) { $FAIL("#8: Incorrect value of Date"); -} - -if (ConstructDate(2000, 0, 1, 0) !== new Date(2000, 0, 1, 0).valueOf()) { +}
+
+if (946713600000 !== new Date(2000, 0, 1, 0).valueOf()) { $FAIL("#9: Incorrect value of Date"); -} - -if (ConstructDate(2099, 11, 31, 23) !== new Date(2099, 11, 31, 23).valueOf()) { +}
+
+if (4102470000000 !== new Date(2099, 11, 31, 23).valueOf()) { $FAIL("#10: Incorrect value of Date"); -} - -if (ConstructDate(2099, 12, 1, 0) !== new Date(2099, 12, 1, 0).valueOf()) { +}
+
+if (4102473600000 !== new Date(2099, 12, 1, 0).valueOf()) { $FAIL("#11: Incorrect value of Date"); -} - -if (ConstructDate(2100, 0, 1, 0) !== new Date(2100, 0, 1, 0).valueOf()) { +}
+
+if (4102473600000 !== new Date(2100, 0, 1, 0).valueOf()) { $FAIL("#12: Incorrect value of Date"); } |