| 1 |
// Copyright 2009 the Sputnik authors. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
info: | |
| 6 |
When Date is called as part of a new expression it is |
| 7 |
a constructor: it initialises the newly created object |
| 8 |
esid: sec-date-value |
| 9 |
es5id: 15.9.3.2_A1_T1 |
| 10 |
description: Checking types of newly created objects and it values |
| 11 |
includes: [dateConstants.js] |
| 12 |
---*/ |
| 13 |
|
| 14 |
if (typeof new Date(date_1899_end) !== "object") { |
| 15 |
$ERROR("#1.1: typeof new Date(date_1899_end) === 'object'"); |
| 16 |
} |
| 17 |
|
| 18 |
if (new Date(date_1899_end) === undefined) { |
| 19 |
$ERROR("#1.2: new Date(date_1899_end) === undefined"); |
| 20 |
} |
| 21 |
|
| 22 |
var x13 = new Date(date_1899_end); |
| 23 |
if (typeof x13 !== "object") { |
| 24 |
$ERROR("#1.3: typeof new Date(date_1899_end) !== 'object'"); |
| 25 |
} |
| 26 |
|
| 27 |
var x14 = new Date(date_1899_end); |
| 28 |
if (x14 === undefined) { |
| 29 |
$ERROR("#1.4: new Date(date_1899_end) !== undefined"); |
| 30 |
} |
| 31 |
|
| 32 |
if (typeof new Date(date_1900_start) !== "object") { |
| 33 |
$ERROR("#2.1: typeof new Date(date_1900_start) === 'object'"); |
| 34 |
} |
| 35 |
|
| 36 |
if (new Date(date_1900_start) === undefined) { |
| 37 |
$ERROR("#2.2: new Date(date_1900_start) === undefined"); |
| 38 |
} |
| 39 |
|
| 40 |
var x23 = new Date(date_1900_start); |
| 41 |
if (typeof x23 !== "object") { |
| 42 |
$ERROR("#2.3: typeof new Date(date_1900_start) !== 'object'"); |
| 43 |
} |
| 44 |
|
| 45 |
var x24 = new Date(date_1900_start); |
| 46 |
if (x24 === undefined) { |
| 47 |
$ERROR("#2.4: new Date(date_1900_start) !== undefined"); |
| 48 |
} |
| 49 |
|
| 50 |
if (typeof new Date(date_1969_end) !== "object") { |
| 51 |
$ERROR("#3.1: typeof new Date(date_1969_end) === 'object'"); |
| 52 |
} |
| 53 |
|
| 54 |
if (new Date(date_1969_end) === undefined) { |
| 55 |
$ERROR("#3.2: new Date(date_1969_end) === undefined"); |
| 56 |
} |
| 57 |
|
| 58 |
var x33 = new Date(date_1969_end); |
| 59 |
if (typeof x33 !== "object") { |
| 60 |
$ERROR("#3.3: typeof new Date(date_1969_end) !== 'object'"); |
| 61 |
} |
| 62 |
|
| 63 |
var x34 = new Date(date_1969_end); |
| 64 |
if (x34 === undefined) { |
| 65 |
$ERROR("#3.4: new Date(date_1969_end) !== undefined"); |
| 66 |
} |
| 67 |
|
| 68 |
if (typeof new Date(date_1970_start) !== "object") { |
| 69 |
$ERROR("#4.1: typeof new Date(date_1970_start) === 'object'"); |
| 70 |
} |
| 71 |
|
| 72 |
if (new Date(date_1970_start) === undefined) { |
| 73 |
$ERROR("#4.2: new Date(date_1970_start) === undefined"); |
| 74 |
} |
| 75 |
|
| 76 |
var x43 = new Date(date_1970_start); |
| 77 |
if (typeof x43 !== "object") { |
| 78 |
$ERROR("#4.3: typeof new Date(date_1970_start) !== 'object'"); |
| 79 |
} |
| 80 |
|
| 81 |
var x44 = new Date(date_1970_start); |
| 82 |
if (x44 === undefined) { |
| 83 |
$ERROR("#4.4: new Date(date_1970_start) !== undefined"); |
| 84 |
} |
| 85 |
|
| 86 |
if (typeof new Date(date_1999_end) !== "object") { |
| 87 |
$ERROR("#5.1: typeof new Date(date_1999_end) === 'object'"); |
| 88 |
} |
| 89 |
|
| 90 |
if (new Date(date_1999_end) === undefined) { |
| 91 |
$ERROR("#5.2: new Date(date_1999_end) === undefined"); |
| 92 |
} |
| 93 |
|
| 94 |
var x53 = new Date(date_1999_end); |
| 95 |
if (typeof x53 !== "object") { |
| 96 |
$ERROR("#5.3: typeof new Date(date_1999_end) !== 'object'"); |
| 97 |
} |
| 98 |
|
| 99 |
var x54 = new Date(date_1999_end); |
| 100 |
if (x54 === undefined) { |
| 101 |
$ERROR("#5.4: new Date(date_1999_end) !== undefined"); |
| 102 |
} |
| 103 |
|
| 104 |
if (typeof new Date(date_2000_start) !== "object") { |
| 105 |
$ERROR("#6.1: typeof new Date(date_2000_start) === 'object'"); |
| 106 |
} |
| 107 |
|
| 108 |
if (new Date(date_2000_start) === undefined) { |
| 109 |
$ERROR("#6.2: new Date(date_2000_start) === undefined"); |
| 110 |
} |
| 111 |
|
| 112 |
var x63 = new Date(date_2000_start); |
| 113 |
if (typeof x63 !== "object") { |
| 114 |
$ERROR("#6.3: typeof new Date(date_2000_start) !== 'object'"); |
| 115 |
} |
| 116 |
|
| 117 |
var x64 = new Date(date_2000_start); |
| 118 |
if (x64 === undefined) { |
| 119 |
$ERROR("#6.4: new Date(date_2000_start) !== undefined"); |
| 120 |
} |
| 121 |
|
| 122 |
if (typeof new Date(date_2099_end) !== "object") { |
| 123 |
$ERROR("#7.1: typeof new Date(date_2099_end) === 'object'"); |
| 124 |
} |
| 125 |
|
| 126 |
if (new Date(date_2099_end) === undefined) { |
| 127 |
$ERROR("#7.2: new Date(date_2099_end) === undefined"); |
| 128 |
} |
| 129 |
|
| 130 |
var x73 = new Date(date_2099_end); |
| 131 |
if (typeof x73 !== "object") { |
| 132 |
$ERROR("#7.3: typeof new Date(date_2099_end) !== 'object'"); |
| 133 |
} |
| 134 |
|
| 135 |
var x74 = new Date(date_2099_end); |
| 136 |
if (x74 === undefined) { |
| 137 |
$ERROR("#7.4: new Date(date_2099_end) !== undefined"); |
| 138 |
} |
| 139 |
|
| 140 |
if (typeof new Date(date_2100_start) !== "object") { |
| 141 |
$ERROR("#8.1: typeof new Date(date_2100_start) === 'object'"); |
| 142 |
} |
| 143 |
|
| 144 |
if (new Date(date_2100_start) === undefined) { |
| 145 |
$ERROR("#8.2: new Date(date_2100_start) === undefined"); |
| 146 |
} |
| 147 |
|
| 148 |
var x83 = new Date(date_2100_start); |
| 149 |
if (typeof x83 !== "object") { |
| 150 |
$ERROR("#8.3: typeof new Date(date_2100_start) !== 'object'"); |
| 151 |
} |
| 152 |
|
| 153 |
var x84 = new Date(date_2100_start); |
| 154 |
if (x84 === undefined) { |
| 155 |
$ERROR("#8.4: new Date(date_2100_start) !== undefined"); |
| 156 |
} |