Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Date/S15.9.3.2_A2_T1.js

raw
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 The [[Prototype]] property of the newly constructed object
7 is set to the original Date prototype object, the one that is the
8 initial value of Date.prototype
9 esid: sec-date-value
10 es5id: 15.9.3.2_A2_T1
11 description: Checking Date.prototype property of newly constructed objects
12 includes: [dateConstants.js]
13 ---*/
14
15 var x11 = new Date(date_1899_end);
16 if (typeof x11.constructor.prototype !== "object") {
17 $ERROR("#1.1: typeof x11.constructor.prototype === 'object'");
18 }
19
20 var x12 = new Date(date_1899_end);
21 if (!Date.prototype.isPrototypeOf(x12)) {
22 $ERROR('#1.2: Date.prototype.isPrototypeOf(x12)');
23 }
24
25 var x13 = new Date(date_1899_end);
26 if (Date.prototype !== x13.constructor.prototype) {
27 $ERROR("#1.3: Date.prototype !== x13.constructor.prototype");
28 }
29
30 var x21 = new Date(date_1900_start);
31 if (typeof x21.constructor.prototype !== "object") {
32 $ERROR("#2.1: typeof x21.constructor.prototype === 'object'");
33 }
34
35 var x22 = new Date(date_1900_start);
36 if (!Date.prototype.isPrototypeOf(x22)) {
37 $ERROR('#2.2: Date.prototype.isPrototypeOf(x22)');
38 }
39
40 var x23 = new Date(date_1900_start);
41 if (Date.prototype !== x23.constructor.prototype) {
42 $ERROR("#2.3: Date.prototype !== x23.constructor.prototype");
43 }
44
45 var x31 = new Date(date_1969_end);
46 if (typeof x31.constructor.prototype !== "object") {
47 $ERROR("#3.1: typeof x31.constructor.prototype === 'object'");
48 }
49
50 var x32 = new Date(date_1969_end);
51 if (!Date.prototype.isPrototypeOf(x32)) {
52 $ERROR('#3.2: Date.prototype.isPrototypeOf(x32)');
53 }
54
55 var x33 = new Date(date_1969_end);
56 if (Date.prototype !== x33.constructor.prototype) {
57 $ERROR("#3.3: Date.prototype !== x33.constructor.prototype");
58 }
59
60 var x41 = new Date(date_1970_start);
61 if (typeof x41.constructor.prototype !== "object") {
62 $ERROR("#4.1: typeof x11.constructor.prototype === 'object'");
63 }
64
65 var x42 = new Date(date_1970_start);
66 if (!Date.prototype.isPrototypeOf(x42)) {
67 $ERROR('#4.2: Date.prototype.isPrototypeOf(x42)');
68 }
69
70 var x43 = new Date(date_1970_start);
71 if (Date.prototype !== x43.constructor.prototype) {
72 $ERROR("#4.3: Date.prototype !== x43.constructor.prototype");
73 }
74
75 var x51 = new Date(date_1999_end);
76 if (typeof x51.constructor.prototype !== "object") {
77 $ERROR("#5.1: typeof x51.constructor.prototype === 'object'");
78 }
79
80 var x52 = new Date(date_1999_end);
81 if (!Date.prototype.isPrototypeOf(x52)) {
82 $ERROR('#5.2: Date.prototype.isPrototypeOf(x52)');
83 }
84
85 var x53 = new Date(date_1999_end);
86 if (Date.prototype !== x53.constructor.prototype) {
87 $ERROR("#5.3: Date.prototype !== x53.constructor.prototype");
88 }
89
90 var x61 = new Date(date_2000_start);
91 if (typeof x61.constructor.prototype !== "object") {
92 $ERROR("#6.1: typeof x61.constructor.prototype === 'object'");
93 }
94
95 var x62 = new Date(date_2000_start);
96 if (!Date.prototype.isPrototypeOf(x62)) {
97 $ERROR('#6.2: Date.prototype.isPrototypeOf(x62)');
98 }
99
100 var x63 = new Date(date_2000_start);
101 if (Date.prototype !== x63.constructor.prototype) {
102 $ERROR("#6.3: Date.prototype !== x63.constructor.prototype");
103 }
104
105 var x71 = new Date(date_2099_end);
106 if (typeof x71.constructor.prototype !== "object") {
107 $ERROR("#7.1: typeof x71.constructor.prototype === 'object'");
108 }
109
110 var x72 = new Date(date_2099_end);
111 if (!Date.prototype.isPrototypeOf(x72)) {
112 $ERROR('#7.2: Date.prototype.isPrototypeOf(x72)');
113 }
114
115 var x73 = new Date(date_2099_end);
116 if (Date.prototype !== x73.constructor.prototype) {
117 $ERROR("#7.3: Date.prototype !== x73.constructor.prototype");
118 }
119
120 var x81 = new Date(date_2100_start);
121 if (typeof x81.constructor.prototype !== "object") {
122 $ERROR("#8.1: typeof x81.constructor.prototype === 'object'");
123 }
124
125 var x82 = new Date(date_2100_start);
126 if (!Date.prototype.isPrototypeOf(x82)) {
127 $ERROR('#8.2: Date.prototype.isPrototypeOf(x82)');
128 }
129
130 var x83 = new Date(date_2100_start);
131 if (Date.prototype !== x83.constructor.prototype) {
132 $ERROR("#8.3: Date.prototype !== x83.constructor.prototype");
133 }