Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/global/S10.2.3_A1.2_T3.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 Global object has properties such as built-in objects such as
7 Math, String, Date, parseInt, etc
8 es5id: 10.2.3_A1.2_T3
9 description: Function execution context - Constructor Properties
10 ---*/
11
12 function test() {
13 //CHECK#13
14 if (Object === null) {
15 $ERROR("#13: Object === null");
16 }
17
18 //CHECK#14
19 if (Function === null) {
20 $ERROR("#14: Function === null");
21 }
22
23 //CHECK#15
24 if (String === null) {
25 $ERROR("#15: String === null");
26 }
27
28 //CHECK#16
29 if (Number === null) {
30 $ERROR("#16: Function === null");
31 }
32
33 //CHECK#17
34 if (Array === null) {
35 $ERROR("#17: Array === null");
36 }
37
38 //CHECK#18
39 if (Boolean === null) {
40 $ERROR("#20: Boolean === null");
41 }
42
43 //CHECK#18
44 if (Date === null) {
45 $ERROR("#18: Date === null");
46 }
47
48 //CHECK#19
49 if (RegExp === null) {
50 $ERROR("#19: RegExp === null");
51 }
52
53 //CHECK#20
54 if (Error === null) {
55 $ERROR("#20: Error === null");
56 }
57
58 //CHECK#21
59 if (EvalError === null) {
60 $ERROR("#21: EvalError === null");
61 }
62
63 //CHECK#22
64 if (RangeError === null) {
65 $ERROR("#22: RangeError === null");
66 }
67
68 //CHECK#23
69 if (ReferenceError === null) {
70 $ERROR("#23: ReferenceError === null");
71 }
72
73 //CHECK#24
74 if (SyntaxError === null) {
75 $ERROR("#24: SyntaxError === null");
76 }
77
78 //CHECK#25
79 if (TypeError === null) {
80 $ERROR("#25: TypeError === null");
81 }
82
83 //CHECK#26
84 if (URIError === null) {
85 $ERROR("#26: URIError === null");
86 }
87 }
88
89 test();