aboutsummaryrefslogtreecommitdiffstats
path: root/website/resources/scripts/testcases2/10.1.5_Global_Object.json
blob: b99d244a7defbf7ac2d3a9490f8a0251188c18d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
{
 "testCollection": {
  "name": "10.1.5_Global_Object",
  "numTests": 24,
  "tests": [
   {
    "section": "10.1.5, 15.1",
    "description": "Global execution context - Value Properties",
    "test": "//CHECK#1\nif ( NaN === null ) {\n  $ERROR(\"#1: NaN === null\");\n}\n\n//CHECK#2\nif ( Infinity === null ) {\n  $ERROR(\"#2: Infinity === null\");\n}\n\n//CHECK#3\nif ( undefined === null ) {\n  $ERROR(\"#3: undefined === null\");\n}\n",
    "id": "S10.1.5_A1.1_T1"
   },
   {
    "section": "10.1.5, 15.1",
    "description": "Global execution context - Function Properties",
    "test": "//CHECK#4\nif ( eval === null ) {\n  $ERROR(\"#4: eval === null\");\n}\n\n//CHECK#5\nif ( parseInt === null ) {\n  $ERROR(\"#5: parseInt === null\");\n}\n\n//CHECK#6\nif ( parseFloat === null ) {\n  $ERROR(\"#6: parseFloat === null\");\n}\n\n//CHECK#7\nif ( isNaN === null ) {\n  $ERROR(\"#7: isNaN === null\");\n}\n\n//CHECK#8\nif ( isFinite === null ) {\n  $ERROR(\"#8: isFinite === null\");\n}\n\n//CHECK#9\nif ( decodeURI === null ) {\n  $ERROR(\"#9: decodeURI === null\");\n}\n\n//CHECK#10\nif ( decodeURIComponent === null ) {\n  $ERROR(\"#10: decodeURIComponent === null\");\n}\n\n//CHECK#11\nif ( encodeURI === null ) {\n  $ERROR(\"#11: encodeURI === null\");\n}\n\n//CHECK#12\nif ( encodeURIComponent === null ) {\n  $ERROR(\"#12: encodeURIComponent === null\");\n}\n",
    "id": "S10.1.5_A1.1_T2"
   },
   {
    "section": "10.1.5, 15.1",
    "description": "Global execution context - Constructor Properties",
    "test": "//CHECK#13\nif ( Object === null ) {\n  $ERROR(\"#13: Object === null\");\n}\n\n//CHECK#14\nif ( Function === null ) {\n  $ERROR(\"#14: Function === null\");\n}\n\n//CHECK#15\nif ( String === null ) {\n  $ERROR(\"#15: String === null\");\n}\n\n//CHECK#16\nif ( Number === null ) {\n  $ERROR(\"#16: Number === null\");\n}\n\n//CHECK#17\nif ( Array === null ) {\n  $ERROR(\"#17: Array === null\");\n}\n\n//CHECK#18\nif ( Boolean === null ) {\n  $ERROR(\"#20: Boolean === null\");\n}\n\n//CHECK#18\nif ( Date === null ) {\n  $ERROR(\"#18: Date === null\");\n}\n\n//CHECK#19\nif ( RegExp === null ) {\n  $ERROR(\"#19: RegExp === null\");\n}\n\n//CHECK#20\nif ( Error === null ) {\n  $ERROR(\"#20: Error === null\");\n}\n\n//CHECK#21\nif ( EvalError === null ) {\n  $ERROR(\"#21: EvalError === null\");\n}\n\n//CHECK#22\nif ( RangeError === null ) {\n  $ERROR(\"#22: RangeError === null\");\n}\n\n//CHECK#23\nif ( ReferenceError === null ) {\n  $ERROR(\"#23: ReferenceError === null\");\n}\n\n//CHECK#24\nif ( SyntaxError === null ) {\n  $ERROR(\"#24: SyntaxError === null\");\n}\n\n//CHECK#25\nif ( TypeError === null ) {\n  $ERROR(\"#25: TypeError === null\");\n}\n\n//CHECK#26\nif ( URIError === null ) {\n  $ERROR(\"#26: URIError === null\");\n}\n\n",
    "id": "S10.1.5_A1.1_T3"
   },
   {
    "section": "10.1.5, 15.1",
    "description": "Global execution context - Other Properties",
    "test": "//CHECK#27\nif ( Math === null ) {\n  $ERROR(\"#27: Math === null\");\n}\n",
    "id": "S10.1.5_A1.1_T4"
   },
   {
    "section": "10.1.5, 15.1",
    "description": "Function execution context - Value Properties",
    "test": "function test() {\n  //CHECK#1\n  if ( NaN === null ) {\n    $ERROR(\"#1: NaN === null\");\n  }\n\n  //CHECK#2\n  if ( Infinity === null ) {\n    $ERROR(\"#2: Infinity === null\");\n  }\n\n  //CHECK#3\n  if ( undefined === null ) {\n    $ERROR(\"#3: undefined === null\");\n  }\n}\n\ntest();\n",
    "id": "S10.1.5_A1.2_T1"
   },
   {
    "section": "10.1.5, 15.1",
    "description": "Function execution context - Function Properties",
    "test": "function test() {\n  //CHECK#4\n  if ( eval === null ) {\n    $ERROR(\"#4: eval === null\");\n  }\n\n  //CHECK#5\n  if ( parseInt === null ) {\n    $ERROR(\"#5: parseInt === null\");\n  }\n\n  //CHECK#6\n  if ( parseFloat === null ) {\n    $ERROR(\"#6: parseFloat === null\");\n  }\n\n  //CHECK#7\n  if ( isNaN === null ) {\n    $ERROR(\"#7: isNaN === null\");\n  }\n\n  //CHECK#8\n  if ( isFinite === null ) {\n    $ERROR(\"#8: isFinite === null\");\n  }\n\n  //CHECK#9\n  if ( decodeURI === null ) {\n    $ERROR(\"#9: decodeURI === null\");\n  }\n\n  //CHECK#10\n  if ( decodeURIComponent === null ) {\n    $ERROR(\"#10: decodeURIComponent === null\");\n  }\n\n  //CHECK#11\n  if ( encodeURI === null ) {\n    $ERROR(\"#11: encodeURI === null\");\n  }\n\n  //CHECK#12\n  if ( encodeURIComponent === null ) {\n    $ERROR(\"#12: encodeURIComponent === null\");\n  }\n}\n\ntest();\n",
    "id": "S10.1.5_A1.2_T2"
   },
   {
    "section": "10.1.5, 15.1",
    "description": "Function execution context - Constructor Properties",
    "test": "function test() {\n  //CHECK#13\n  if ( Object === null ) {\n    $ERROR(\"#13: Object === null\");\n  }\n\n  //CHECK#14\n  if ( Function === null ) {\n    $ERROR(\"#14: Function === null\");\n  }\n\n  //CHECK#15\n  if ( String === null ) {\n    $ERROR(\"#15: String === null\");\n  }\n\n  //CHECK#16\n  if ( Number === null ) {\n    $ERROR(\"#16: Function === null\");\n  }\n\n  //CHECK#17\n  if ( Array === null ) {\n    $ERROR(\"#17: Array === null\");\n  }\n\n  //CHECK#18\n  if ( Boolean === null ) {\n    $ERROR(\"#20: Boolean === null\");\n  }\n\n  //CHECK#18\n  if ( Date === null ) {\n    $ERROR(\"#18: Date === null\");\n  }\n\n  //CHECK#19\n  if ( RegExp === null ) {\n    $ERROR(\"#19: RegExp === null\");\n  }\n\n  //CHECK#20\n  if ( Error === null ) {\n    $ERROR(\"#20: Error === null\");\n  }\n\n  //CHECK#21\n  if ( EvalError === null ) {\n    $ERROR(\"#21: EvalError === null\");\n  }\n\n  //CHECK#22\n  if ( RangeError === null ) {\n    $ERROR(\"#22: RangeError === null\");\n  }\n\n  //CHECK#23\n  if ( ReferenceError === null ) {\n    $ERROR(\"#23: ReferenceError === null\");\n  }\n\n  //CHECK#24\n  if ( SyntaxError === null ) {\n    $ERROR(\"#24: SyntaxError === null\");\n  }\n\n  //CHECK#25\n  if ( TypeError === null ) {\n    $ERROR(\"#25: TypeError === null\");\n  }\n\n  //CHECK#26\n  if ( URIError === null ) {\n    $ERROR(\"#26: URIError === null\");\n  }\n}\n\ntest();\n",
    "id": "S10.1.5_A1.2_T3"
   },
   {
    "section": "10.1.5, 15.1",
    "description": "Function execution context - Other Properties",
    "test": "function test() {\n  //CHECK#27\n  if ( Math === null ) {\n    $ERROR(\"#27: Math === null\");\n  }\n}\n\ntest();\n",
    "id": "S10.1.5_A1.2_T4"
   },
   {
    "section": "10.1.5, 15.1",
    "description": "Eval execution context - Value Properties",
    "test": "var evalStr = \n'//CHECK#1\\n'+\n'if ( NaN === null ) {\\n'+\n'  $ERROR(\"#1: NaN === null\");\\n'+\n'}\\n'+\n\n'//CHECK#2\\n'+\n'if ( Infinity === null ) {\\n'+\n'  $ERROR(\"#2: Infinity === null\");\\n'+\n'}\\n'+\n\n'//CHECK#3\\n'+\n'if ( undefined === null ) {\\n'+\n'  $ERROR(\"#3: undefined === null\");\\n'+\n'}\\n'+\n';\\n';\n\neval(evalStr);\n",
    "id": "S10.1.5_A1.3_T1"
   },
   {
    "section": "10.1.5, 15.1",
    "description": "Eval execution context - Function Properties",
    "test": "var evalStr = \n'//CHECK#4\\n'+\n'if ( eval === null ) {\\n'+\n'  $ERROR(\"#4: eval === null\");\\n'+\n'}\\n'+\n\n'//CHECK#5\\n'+\n'if ( parseInt === null ) {\\n'+\n'  $ERROR(\"#5: parseInt === null\");\\n'+\n'}\\n'+\n\n'//CHECK#6\\n'+\n'if ( parseFloat === null ) {\\n'+\n'  $ERROR(\"#6: parseFloat === null\");\\n'+\n'}\\n'+\n\n'//CHECK#7\\n'+\n'if ( isNaN === null ) {\\n'+\n'  $ERROR(\"#7: isNaN === null\");\\n'+\n'}\\n'+\n\n'//CHECK#8\\n'+\n'if ( isFinite === null ) {\\n'+\n'  $ERROR(\"#8: isFinite === null\");\\n'+\n'}\\n'+\n\n'//CHECK#9\\n'+\n'if ( decodeURI === null ) {\\n'+\n'  $ERROR(\"#9: decodeURI === null\");\\n'+\n'}\\n'+\n\n'//CHECK#10\\n'+\n'if ( decodeURIComponent === null ) {\\n'+\n'  $ERROR(\"#10: decodeURIComponent === null\");\\n'+\n'}\\n'+\n\n'//CHECK#11\\n'+\n'if ( encodeURI === null ) {\\n'+\n'  $ERROR(\"#11: encodeURI === null\");\\n'+\n'}\\n'+\n\n'//CHECK#12\\n'+\n'if ( encodeURIComponent === null ) {\\n'+\n'  $ERROR(\"#12: encodeURIComponent === null\");\\n'+\n'}\\n'+\n';\\n';\n\neval(evalStr);\n",
    "id": "S10.1.5_A1.3_T2"
   },
   {
    "section": "10.1.5, 15.1",
    "description": "Eval execution context - Constructor Properties",
    "test": "var evalStr = \n'//CHECK#13\\n'+\n'if ( Object === null ) {\\n'+\n'  $ERROR(\"#13: Object === null\");\\n'+\n'}\\n'+\n\n'//CHECK#14\\n'+\n'if ( Function === null ) {\\n'+\n'  $ERROR(\"#14: Function === null\");\\n'+\n'}\\n'+\n\n'//CHECK#15\\n'+\n'if ( String === null ) {\\n'+\n'  $ERROR(\"#15: String === null\");\\n'+\n'}\\n'+\n\n'//CHECK#16\\n'+\n'if ( Number === null ) {\\n'+\n'  $ERROR(\"#16: Function === null\");\\n'+\n'}\\n'+\n\n'//CHECK#17\\n'+\n'if ( Array === null ) {\\n'+\n'  $ERROR(\"#17: Array === null\");\\n'+\n'}\\n'+\n\n'//CHECK#18\\n'+\n'if ( Boolean === null ) {\\n'+\n'  $ERROR(\"#20: Boolean === null\");\\n'+\n'}\\n'+\n\n'//CHECK#18\\n'+\n'if ( Date === null ) {\\n'+\n'  $ERROR(\"#18: Date === null\");\\n'+\n'}\\n'+\n\n'//CHECK#19\\n'+\n'if ( RegExp === null ) {\\n'+\n'  $ERROR(\"#19: RegExp === null\");\\n'+\n'}\\n'+\n\n'//CHECK#20\\n'+\n'if ( Error === null ) {\\n'+\n'  $ERROR(\"#20: Error === null\");\\n'+\n'}\\n'+\n\n'//CHECK#21\\n'+\n'if ( EvalError === null ) {\\n'+\n'  $ERROR(\"#21: EvalError === null\");\\n'+\n'}\\n'+\n\n'//CHECK#22\\n'+\n'if ( RangeError === null ) {\\n'+\n'  $ERROR(\"#22: RangeError === null\");\\n'+\n'}\\n'+\n\n'//CHECK#23\\n'+\n'if ( ReferenceError === null ) {\\n'+\n'  $ERROR(\"#23: ReferenceError === null\");\\n'+\n'}\\n'+\n\n'//CHECK#24\\n'+\n'if ( SyntaxError === null ) {\\n'+\n'  $ERROR(\"#24: SyntaxError === null\");\\n'+\n'}\\n'+\n\n'//CHECK#25\\n'+\n'if ( TypeError === null ) {\\n'+\n'  $ERROR(\"#25: TypeError === null\");\\n'+\n'}\\n'+\n\n'//CHECK#26\\n'+\n'if ( URIError === null ) {\\n'+\n'  $ERROR(\"#26: URIError === null\");\\n'+\n'}\\n'+\n';\\n';\n\neval(evalStr);\n",
    "id": "S10.1.5_A1.3_T3"
   },
   {
    "section": "10.1.5, 15.1",
    "description": "Eval execution context - Other Properties",
    "test": "var evalStr = \n'//CHECK#27\\n'+\n'if ( Math === null ) {\\n'+\n'  $ERROR(\"#27: Math === null\");\\n'+\n'}\\n'+\n';\\n';\n\neval(evalStr);\n",
    "id": "S10.1.5_A1.3_T4"
   },
   {
    "section": "10.1.5, 15.1",
    "description": "Global execution context - Value Properties",
    "test": "//CHECK#1\nfor (var x in this) {\n  if ( x === 'NaN' ) {\n    $ERROR(\"#1: 'NaN' have attribute DontEnum\");\n  } else if ( x === 'Infinity' ) {\n    $ERROR(\"#1: 'Infinity' have attribute DontEnum\");\n  } else if ( x === 'undefined' ) {\n    $ERROR(\"#1: 'undefined' have attribute DontEnum\");\n  } \n}\n",
    "id": "S10.1.5_A2.1_T1"
   },
   {
    "section": "10.1.5, 15.1",
    "description": "Global execution context - Function Properties",
    "test": "//CHECK#1\nfor (var x in this) {\n  if ( x === 'eval' ) {\n    $ERROR(\"#1: 'eval' have attribute DontEnum\");\n  } else if ( x === 'parseInt' ) {\n    $ERROR(\"#1: 'parseInt' have attribute DontEnum\");\n  } else if ( x === 'parseFloat' ) {\n    $ERROR(\"#1: 'parseFloat' have attribute DontEnum\");\n  } else if ( x === 'isNaN' ) {\n    $ERROR(\"#1: 'isNaN' have attribute DontEnum\");\n  } else if ( x === 'isFinite' ) {\n    $ERROR(\"#1: 'isFinite' have attribute DontEnum\");\n  } else if ( x === 'decodeURI' ) {\n    $ERROR(\"#1: 'decodeURI' have attribute DontEnum\");\n  } else if ( x === 'decodeURIComponent' ) {\n    $ERROR(\"#1: 'decodeURIComponent' have attribute DontEnum\");\n  } else if ( x === 'encodeURI' ) {\n    $ERROR(\"#1: 'encodeURI' have attribute DontEnum\");\n  } else if ( x === 'encodeURIComponent' ) {\n    $ERROR(\"#1: 'encodeURIComponent' have attribute DontEnum\");\n  } \n}\n",
    "id": "S10.1.5_A2.1_T2"
   },
   {
    "section": "10.1.5, 15.1",
    "description": "Global execution context - Constructor Properties",
    "test": "//CHECK#1\nfor (var x in this) {\n  if ( x === 'Object' ) {\n    $ERROR(\"#1: 'property 'Object' have attribute DontEnum\");\n  } else if ( x === 'Function') {\n    $ERROR(\"#1: 'Function' have attribute DontEnum\");\n  } else if ( x === 'String' ) {\n    $ERROR(\"#1: 'String' have attribute DontEnum\");\n  } else if ( x === 'Number' ) {\n    $ERROR(\"#1: 'Number' have attribute DontEnum\");\n  } else if ( x === 'Array' ) {\n    $ERROR(\"#1: 'Array' have attribute DontEnum\");\n  } else if ( x === 'Boolean' ) {\n    $ERROR(\"#1: 'Boolean' have attribute DontEnum\");\n  } else if ( x === 'Date' ) {\n    $ERROR(\"#1: 'Date' have attribute DontEnum\");\n  } else if ( x === 'RegExp' ) {\n    $ERROR(\"#1: 'RegExp' have attribute DontEnum\");\n  } else if ( x === 'Error' ) {\n    $ERROR(\"#1: 'Error' have attribute DontEnum\");\n  } else if ( x === 'EvalError' ) {\n    $ERROR(\"#1: 'EvalError' have attribute DontEnum\");\n  } else if ( x === 'RangeError' ) {\n    $ERROR(\"#1: 'RangeError' have attribute DontEnum\");\n  } else if ( x === 'ReferenceError' ) {\n    $ERROR(\"#1: 'ReferenceError' have attribute DontEnum\");\n  } else if ( x === 'SyntaxError' ) {\n    $ERROR(\"#1: 'SyntaxError' have attribute DontEnum\");\n  } else if ( x === 'TypeError' ) {\n    $ERROR(\"#1: 'TypeError' have attribute DontEnum\");\n  } else if ( x === 'URIError' ) {\n    $ERROR(\"#1: 'URIError' have attribute DontEnum\");\n  }\n}\n",
    "id": "S10.1.5_A2.1_T3"
   },
   {
    "section": "10.1.5, 15.1",
    "description": "Global execution context - Other Properties",
    "test": "//CHECK#1\nfor (var x in this) {\n  if ( x === 'Math' ) {\n    $ERROR(\"#1: 'Math' have attribute DontEnum\");\n  }\n}\n",
    "id": "S10.1.5_A2.1_T4"
   },
   {
    "section": "10.1.5, 15.1",
    "description": "Function execution context - Value Properties",
    "test": "function test() {\n  //CHECK#1\n  for (var x in this) {\n    if ( x === 'NaN' ) {\n      $ERROR(\"#1: 'NaN' have attribute DontEnum\");\n    } else if ( x === 'Infinity' ) {\n      $ERROR(\"#1: 'Infinity' have attribute DontEnum\");\n    } else if ( x === 'undefined' ) {\n      $ERROR(\"#1: 'undefined' have attribute DontEnum\");\n    } \n  }\n}\n\ntest();\n",
    "id": "S10.1.5_A2.2_T1"
   },
   {
    "section": "10.1.5, 15.1",
    "description": "Function execution context - Function Properties",
    "test": "function test() {\n  //CHECK#1\n  for (var x in this) {\n    if ( x === 'eval' ) {\n      $ERROR(\"#1: 'eval' have attribute DontEnum\");\n    } else if ( x === 'parseInt' ) {\n      $ERROR(\"#1: 'parseInt' have attribute DontEnum\");\n    } else if ( x === 'parseFloat' ) {\n      $ERROR(\"#1: 'parseFloat' have attribute DontEnum\");\n    } else if ( x === 'isNaN' ) {\n      $ERROR(\"#1: 'isNaN' have attribute DontEnum\");\n    } else if ( x === 'isFinite' ) {\n      $ERROR(\"#1: 'isFinite' have attribute DontEnum\");\n    } else if ( x === 'decodeURI' ) {\n      $ERROR(\"#1: 'decodeURI' have attribute DontEnum\");\n    } else if ( x === 'decodeURIComponent' ) {\n      $ERROR(\"#1: 'decodeURIComponent' have attribute DontEnum\");\n    } else if ( x === 'encodeURI' ) {\n      $ERROR(\"#1: 'encodeURI' have attribute DontEnum\");\n    } else if ( x === 'encodeURIComponent' ) {\n      $ERROR(\"#1: 'encodeURIComponent' have attribute DontEnum\");\n    } \n  }\n}\n\ntest();\n",
    "id": "S10.1.5_A2.2_T2"
   },
   {
    "section": "10.1.5, 15.1",
    "description": "Function execution context - Constructor Properties",
    "test": "function test() {\n  //CHECK#1\n  for (var x in this) {\n    if ( x === 'Object' ) {\n      $ERROR(\"#1: 'property 'Object' have attribute DontEnum\");\n    } else if ( x === 'Function') {\n      $ERROR(\"#1: 'Function' have attribute DontEnum\");\n    } else if ( x === 'String' ) {\n      $ERROR(\"#1: 'String' have attribute DontEnum\");\n    } else if ( x === 'Number' ) {\n      $ERROR(\"#1: 'Number' have attribute DontEnum\");\n    } else if ( x === 'Array' ) {\n      $ERROR(\"#1: 'Array' have attribute DontEnum\");\n    } else if ( x === 'Boolean' ) {\n      $ERROR(\"#1: 'Boolean' have attribute DontEnum\");\n    } else if ( x === 'Date' ) {\n      $ERROR(\"#1: 'Date' have attribute DontEnum\");\n    } else if ( x === 'RegExp' ) {\n      $ERROR(\"#1: 'RegExp' have attribute DontEnum\");\n    } else if ( x === 'Error' ) {\n      $ERROR(\"#1: 'Error' have attribute DontEnum\");\n    } else if ( x === 'EvalError' ) {\n      $ERROR(\"#1: 'EvalError' have attribute DontEnum\");\n    } else if ( x === 'RangeError' ) {\n      $ERROR(\"#1: 'RangeError' have attribute DontEnum\");\n    } else if ( x === 'ReferenceError' ) {\n      $ERROR(\"#1: 'ReferenceError' have attribute DontEnum\");\n    } else if ( x === 'SyntaxError' ) {\n      $ERROR(\"#1: 'SyntaxError' have attribute DontEnum\");\n    } else if ( x === 'TypeError' ) {\n      $ERROR(\"#1: 'TypeError' have attribute DontEnum\");\n    } else if ( x === 'URIError' ) {\n      $ERROR(\"#1: 'URIError' have attribute DontEnum\");\n    } \n  }\n}\n\ntest();\n",
    "id": "S10.1.5_A2.2_T3"
   },
   {
    "section": "10.1.5, 15.1",
    "description": "Function execution context - Other Properties",
    "test": "function test() {\n  //CHECK#1\n  for (var x in this) {\n    if ( x === 'Math' ) {\n      $ERROR(\"#1: 'Math' have attribute DontEnum\");\n    }\n  }\n}\n\ntest();\n",
    "id": "S10.1.5_A2.2_T4"
   },
   {
    "section": "10.1.5, 15.1",
    "description": "Global execution context - Value Properties",
    "test": "var evalStr = \n'//CHECK#1\\n'+\n'for (var x in this) {\\n'+\n'  if ( x === \\'NaN\\' ) {\\n'+\n'    $ERROR(\"#1: \\'NaN\\' have attribute DontEnum\");\\n'+\n'  } else if ( x === \\'Infinity\\' ) {\\n'+\n'    $ERROR(\"#1: \\'Infinity\\' have attribute DontEnum\");\\n'+\n'  } else if ( x === \\'undefined\\' ) {\\n'+\n'    $ERROR(\"#1: \\'undefined\\' have attribute DontEnum\");\\n'+\n'  }\\n'+\n'}\\n';\n\neval(evalStr);\n",
    "id": "S10.1.5_A2.3_T1"
   },
   {
    "section": "10.1.5, 15.1",
    "description": "Global execution context - Function Properties",
    "test": "var evalStr = \n'//CHECK#1\\n'+\n'for (var x in this) {\\n'+\n'  if ( x === \\'eval\\' ) {\\n'+\n'    $ERROR(\"#1: \\'eval\\' have attribute DontEnum\");\\n'+\n'  } else if ( x === \\'parseInt\\' ) {\\n'+\n'    $ERROR(\"#1: \\'parseInt\\' have attribute DontEnum\");\\n'+\n'  } else if ( x === \\'parseFloat\\' ) {\\n'+\n'    $ERROR(\"#1: \\'parseFloat\\' have attribute DontEnum\");\\n'+\n'  } else if ( x === \\'isNaN\\' ) {\\n'+\n'    $ERROR(\"#1: \\'isNaN\\' have attribute DontEnum\");\\n'+\n'  } else if ( x === \\'isFinite\\' ) {\\n'+\n'    $ERROR(\"#1: \\'isFinite\\' have attribute DontEnum\");\\n'+\n'  } else if ( x === \\'decodeURI\\' ) {\\n'+\n'    $ERROR(\"#1: \\'decodeURI\\' have attribute DontEnum\");\\n'+\n'  } else if ( x === \\'decodeURIComponent\\' ) {\\n'+\n'    $ERROR(\"#1: \\'decodeURIComponent\\' have attribute DontEnum\");\\n'+\n'  } else if ( x === \\'encodeURI\\' ) {\\n'+\n'    $ERROR(\"#1: \\'encodeURI\\' have attribute DontEnum\");\\n'+\n'  } else if ( x === \\'encodeURIComponent\\' ) {\\n'+\n'    $ERROR(\"#1: \\'encodeURIComponent\\' have attribute DontEnum\");\\n'+\n'  }\\n'+\n'}\\n';\n\neval(evalStr);\n",
    "id": "S10.1.5_A2.3_T2"
   },
   {
    "section": "10.1.5, 15.1",
    "description": "Global execution context - Constructor Properties",
    "test": "var evalStr = \n'//CHECK#1\\n'+\n'for (var x in this) {\\n'+\n'  if ( x === \\'Object\\' ) {\\n'+\n'    $ERROR(\"#1: \\'Object\\' have attribute DontEnum\");\\n'+\n'  } else if ( x === \\'Function\\') {\\n'+\n'    $ERROR(\"#1: \\'Function\\' have attribute DontEnum\");\\n'+\n'  } else if ( x === \\'String\\' ) {\\n'+\n'    $ERROR(\"#1: \\'String\\' have attribute DontEnum\");\\n'+\n'  } else if ( x === \\'Number\\' ) {\\n'+\n'    $ERROR(\"#1: \\'Number\\' have attribute DontEnum\");\\n'+\n'  } else if ( x === \\'Array\\' ) {\\n'+\n'    $ERROR(\"#1: \\'Array\\' have attribute DontEnum\");\\n'+\n'  } else if ( x === \\'Boolean\\' ) {\\n'+\n'    $ERROR(\"#1: \\'Boolean\\' have attribute DontEnum\");\\n'+\n'  } else if ( x === \\'Date\\' ) {\\n'+\n'    $ERROR(\"#1: \\'Date\\' have attribute DontEnum\");\\n'+\n'  } else if ( x === \\'RegExp\\' ) {\\n'+\n'    $ERROR(\"#1: \\'RegExp\\' have attribute DontEnum\");\\n'+\n'  } else if ( x === \\'Error\\' ) {\\n'+\n'    $ERROR(\"#1: \\'Error\\' have attribute DontEnum\");\\n'+\n'  } else if ( x === \\'EvalError\\' ) {\\n'+\n'    $ERROR(\"#1: \\'EvalError\\' have attribute DontEnum\");\\n'+\n'  } else if ( x === \\'RangeError\\' ) {\\n'+\n'    $ERROR(\"#1: \\'RangeError\\' have attribute DontEnum\");\\n'+\n'  } else if ( x === \\'ReferenceError\\' ) {\\n'+\n'    $ERROR(\"#1: \\'ReferenceError\\' have attribute DontEnum\");\\n'+\n'  } else if ( x === \\'SyntaxError\\' ) {\\n'+\n'    $ERROR(\"#1: \\'SyntaxError\\' have attribute DontEnum\");\\n'+\n'  } else if ( x === \\'TypeError\\' ) {\\n'+\n'    $ERROR(\"#1: \\'TypeError\\' have attribute DontEnum\");\\n'+\n'  } else if ( x === \\'URIError\\' ) {\\n'+\n'    $ERROR(\"#1: \\'URIError\\' have attribute DontEnum\");\\n'+\n'  }\\n'+\n'}\\n';\n\neval(evalStr);\n",
    "id": "S10.1.5_A2.3_T3"
   },
   {
    "section": "10.1.5, 15.1",
    "description": "Global execution context - Other Properties",
    "test": "var evalStr = \n'//CHECK#1\\n'+\n'for (var x in this) {\\n'+\n'  if ( x === \\'Math\\' ) {\\n'+\n'    $ERROR(\"#1: \\'Math\\' have attribute DontEnum\");\\n'+\n'  }\\n'+\n'}\\n';\n\neval(evalStr);\n",
    "id": "S10.1.5_A2.3_T4"
   }
  ]
 }
}