aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik_converted/15_Native/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A5_T5.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/sputnik_converted/15_Native/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A5_T5.js')
-rw-r--r--test/suite/sputnik_converted/15_Native/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A5_T5.js87
1 files changed, 0 insertions, 87 deletions
diff --git a/test/suite/sputnik_converted/15_Native/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A5_T5.js b/test/suite/sputnik_converted/15_Native/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A5_T5.js
deleted file mode 100644
index 0b2fcfb8e..000000000
--- a/test/suite/sputnik_converted/15_Native/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A5_T5.js
+++ /dev/null
@@ -1,87 +0,0 @@
-// Copyright 2009 the Sputnik authors. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-
-/**
- * @name: S15.9.3.1_A5_T5;
- * @section: 15.9.3.1;
- * @assertion: The [[Value]] property of the newly constructed object
- * is set by following steps:
- * 8. If Result(1) is not NaN and 0 <= ToInteger(Result(1)) <= 99, Result(8) is
- * 1900+ToInteger(Result(1)); otherwise, Result(8) is Result(1)
- * 9. Compute MakeDay(Result(8), Result(2), Result(3))
- * 10. Compute MakeTime(Result(4), Result(5), Result(6), Result(7))
- * 11. Compute MakeDate(Result(9), Result(10))
- * 12. Set the [[Value]] property of the newly constructed object to
- * TimeClip(UTC(Result(11)));
- * @description: 6 arguments, (year, month, date, hours, minutes, seconds);
- */
-
-
-// Converted for Test262 from original Sputnik source
-
-ES5Harness.registerTest( {
-id: "S15.9.3.1_A5_T5",
-
-path: "TestCases/15_Native/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A5_T5.js",
-
-assertion: "The [[Value]] property of the newly constructed object",
-
-description: "6 arguments, (year, month, date, hours, minutes, seconds)",
-
-test: function testcase() {
- $INCLUDE("environment.js");
-$INCLUDE("numeric_conversion.js");
-$INCLUDE("Date_constants.js");
-$INCLUDE("Date_library.js");
-
-if (ConstructDate(1899, 11, 31, 23, 59, 59) !== new Date(1899, 11, 31, 23, 59, 59).valueOf()) {
- $FAIL("#1: Incorrect value of Date");
-}
-
-if (ConstructDate(1899, 12, 1, 0, 0, 0) !== new Date(1899, 12, 1, 0, 0, 0).valueOf()) {
- $FAIL("#2: Incorrect value of Date");
-}
-
-if (ConstructDate(1900, 0, 1, 0, 0, 0) !== new Date(1900, 0, 1, 0, 0, 0).valueOf()) {
- $FAIL("#3: Incorrect value of Date");
-}
-
-if (ConstructDate(1969, 11, 31, 23, 59, 59) !== new Date(1969, 11, 31, 23, 59, 59).valueOf()) {
- $FAIL("#4: Incorrect value of Date");
-}
-
-if (ConstructDate(1969, 12, 1, 0, 0, 0) !== new Date(1969, 12, 1, 0, 0, 0).valueOf()) {
- $FAIL("#5: Incorrect value of Date");
-}
-
-if (ConstructDate(1970, 0, 1, 0, 0, 0) !== new Date(1970, 0, 1, 0, 0, 0).valueOf()) {
- $FAIL("#6: Incorrect value of Date");
-}
-
-if (ConstructDate(1999, 11, 31, 23, 59, 59) !== new Date(1999, 11, 31, 23, 59, 59).valueOf()) {
- $FAIL("#7: Incorrect value of Date");
-}
-
-if (ConstructDate(1999, 12, 1, 0, 0, 0) !== new Date(1999, 12, 1, 0, 0, 0).valueOf()) {
- $FAIL("#8: Incorrect value of Date");
-}
-
-if (ConstructDate(2000, 0, 1, 0, 0, 0) !== new Date(2000, 0, 1, 0, 0, 0).valueOf()) {
- $FAIL("#9: Incorrect value of Date");
-}
-
-if (ConstructDate(2099, 11, 31, 23, 59, 59) !== new Date(2099, 11, 31, 23, 59, 59).valueOf()) {
- $FAIL("#10: Incorrect value of Date");
-}
-
-if (ConstructDate(2099, 12, 1, 0, 0, 0) !== new Date(2099, 12, 1, 0, 0, 0).valueOf()) {
- $FAIL("#11: Incorrect value of Date");
-}
-
-if (ConstructDate(2100, 0, 1, 0, 0, 0) !== new Date(2100, 0, 1, 0, 0, 0).valueOf()) {
- $FAIL("#12: Incorrect value of Date");
-}
-
- }
-});
-