aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik_converted/15_Native/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A6_T3.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_A6_T3.js')
-rw-r--r--test/suite/sputnik_converted/15_Native/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A6_T3.js79
1 files changed, 0 insertions, 79 deletions
diff --git a/test/suite/sputnik_converted/15_Native/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A6_T3.js b/test/suite/sputnik_converted/15_Native/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A6_T3.js
deleted file mode 100644
index c76fd92c0..000000000
--- a/test/suite/sputnik_converted/15_Native/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A6_T3.js
+++ /dev/null
@@ -1,79 +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_A6_T3;
- * @section: 15.9.3.1;
- * @assertion: The [[Value]] property of the newly constructed object
- * with supplied "undefined" argument should be NaN;
- * @description: 4 arguments, (year, month, date, hours);
- */
-
-
-// Converted for Test262 from original Sputnik source
-
-ES5Harness.registerTest( {
-id: "S15.9.3.1_A6_T3",
-
-path: "TestCases/15_Native/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A6_T3.js",
-
-assertion: "The [[Value]] property of the newly constructed object",
-
-description: "4 arguments, (year, month, date, hours)",
-
-test: function testcase() {
- function DateValue(year, month, date, hours, minutes, seconds, ms){
- return new Date(year, month, date, hours, minutes, seconds, ms).valueOf();
-}
-
-if (!isNaN(DateValue(1899, 11, 31, 23))) {
- $FAIL("#1: The value should be NaN");
-}
-
-if (!isNaN(DateValue(1899, 12, 1, 0))) {
- $FAIL("#2: The value should be NaN");
-}
-
-if (!isNaN(DateValue(1900, 0, 1, 0))) {
- $FAIL("#3: The value should be NaN");
-}
-
-if (!isNaN(DateValue(1969, 11, 31, 23))) {
- $FAIL("#4: The value should be NaN");
-}
-
-if (!isNaN(DateValue(1969, 12, 1, 0))) {
- $FAIL("#5: The value should be NaN");
-}
-
-if (!isNaN(DateValue(1970, 0, 1, 0))) {
- $FAIL("#6: The value should be NaN");
-}
-
-if (!isNaN(DateValue(1999, 11, 31, 23))) {
- $FAIL("#7: The value should be NaN");
-}
-
-if (!isNaN(DateValue(1999, 12, 1, 0))) {
- $FAIL("#8: The value should be NaN");
-}
-
-if (!isNaN(DateValue(2000, 0, 1, 0))) {
- $FAIL("#9: The value should be NaN");
-}
-
-if (!isNaN(DateValue(2099, 11, 31, 23))) {
- $FAIL("#10: The value should be NaN");
-}
-
-if (!isNaN(DateValue(2099, 12, 1, 0))) {
- $FAIL("#11: The value should be NaN");
-}
-
-if (!isNaN(DateValue(2100, 0, 1, 0))) {
- $FAIL("#12: The value should be NaN");
-}
-
- }
-});
-