aboutsummaryrefslogtreecommitdiffstats
path: root/website/resources/scripts/testcases2/15.2.3.12.json
blob: e9f3b67cbef9ac83fae23f333588baecb5909481 (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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
{
 "testCollection": {
  "name": "15.2.3.12",
  "numTests": 56,
  "tests": [
   {
    "id": "15.2.3.12-0-1",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-0-1.js",
    "description": "Object.isFrozen must exist as a function",
    "test": "assertTrue((function testcase() {\n  var f = Object.isFrozen;\n  if (typeof(f) === \"function\") {\n    return true;\n  }\n }).call(this));\n"
   },
   {
    "id": "15.2.3.12-0-2",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-0-2.js",
    "description": "Object.isFrozen must exist as a function taking 1 parameter",
    "test": "assertTrue((Object.isFrozen.length === 1));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-1-1",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-1-1.js",
    "description": "Object.isFrozen - TypeError is thrown when the first param 'O' is undefined",
    "test": "assertTrue((function testcase() {\n        try {\n            Object.isFrozen(undefined);\n        } catch (e) {\n            return (e instanceof TypeError);\n        }\n    }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-1-2",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-1-2.js",
    "description": "Object.isFrozen - TypeError is thrown when the first param 'O' is null",
    "test": "assertTrue((function testcase() {\n        try {\n            Object.isFrozen(null);\n        } catch (e) {\n            return (e instanceof TypeError);\n        }\n    }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-1-3",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-1-3.js",
    "description": "Object.isFrozen - TypeError is thrown when the first param 'O' is a boolean",
    "test": "assertTrue((function testcase() {\n        try {\n            Object.isFrozen(true);\n        } catch (e) {\n            return (e instanceof TypeError);\n        }\n    }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-1-4",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-1-4.js",
    "description": "Object.isFrozen - TypeError is thrown when the first param 'O' is a string",
    "test": "assertTrue((function testcase() {\n        try {\n            Object.isFrozen(\"abc\");\n        } catch (e) {\n            return (e instanceof TypeError);\n        }\n    }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-1-5",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-1-5.js",
    "description": "Object.isFrozen applies to dense array",
    "test": "assertTrue((function testcase() {\n        var obj = Object.freeze([0, 1, 2]);\n        return Object.isFrozen(obj);\n    }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen) && fnExists(Object.freeze))"
   },
   {
    "id": "15.2.3.12-1-6",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-1-6.js",
    "description": "Object.isFrozen applies to sparse array",
    "test": "assertTrue((function testcase() {\n        var sparseArr = [0, 1];\n        sparseArr[10000] = 10000;\n\n        sparseArr = Object.freeze(sparseArr);\n        return Object.isFrozen(sparseArr);\n    }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen) && fnExists(Object.freeze))"
   },
   {
    "id": "15.2.3.12-1-7",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-1-7.js",
    "description": "Object.isFrozen applies to non-array object which contains index named properties",
    "test": "assertTrue((function testcase() {\n        var obj = Object.freeze({ 0: 0, 1: 1, 1000: 1000 });\n        return Object.isFrozen(obj);\n    }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen) && fnExists(Object.freeze))"
   },
   {
    "id": "15.2.3.12-1",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-1.js",
    "description": "Object.isFrozen throws TypeError if type of first param is not Object",
    "test": "assertTrue((function testcase() {\n    try {\n      Object.isFrozen(0);\n    }\n    catch (e) {\n      if (e instanceof TypeError) {\n        return true;\n      }\n    }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-2-1",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-2-1.js",
    "description": "Object.isFrozen - inherited data property is not considered into the for each loop",
    "test": "assertTrue((function testcase() {\n\n        var proto = {};\n        Object.defineProperty(proto, \"Father\", {\n            value: 10,\n            writable: false,\n            configurable: true\n        });\n\n        var Con = function () { };\n        Con.prototype = proto;\n\n        var child = new Con();\n\n        Object.preventExtensions(child);\n\n        return Object.isFrozen(child);\n\n    }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen) && fnExists(Object.preventExtensions) && fnExists(Object.defineProperty))"
   },
   {
    "id": "15.2.3.12-2-2",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-2-2.js",
    "description": "Object.isFrozen - inherited accessor property is not considered into the for each loop",
    "test": "assertTrue((function testcase() {\n\n        var proto = {};\n        \n        function get_func() {\n            return 10;\n        }\n        function set_func() { }\n\n        Object.defineProperty(proto, \"Father\", {\n            get: get_func,\n            set: set_func,\n            configurable: true\n        });\n\n        var Con = function () { };\n        Con.prototype = proto;\n\n        var child = new Con();\n\n        Object.preventExtensions(child);\n\n        return Object.isFrozen(child);\n\n    }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen) && fnExists(Object.preventExtensions) && fnExists(Object.defineProperty))"
   },
   {
    "id": "15.2.3.12-2-a-1",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-2-a-1.js",
    "description": "Object.isFrozen - 'P' is own data property",
    "test": "assertTrue((function testcase() {\n\n        var obj = {};\n\n        Object.defineProperty(obj, \"foo\", {\n            value: 12,\n            writable: true,\n            configurable: false\n        });\n\n        Object.preventExtensions(obj);\n\n        return !Object.isFrozen(obj);\n    }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen) && fnExists(Object.defineProperty) && fnExists(Object.preventExtensions))"
   },
   {
    "id": "15.2.3.12-2-a-11",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-2-a-11.js",
    "description": "Object.isFrozen - 'O' is the Arguments object",
    "test": "assertTrue((function testcase() {\n\n        var arg;\n\n        (function fun() {\n            arg = arguments;\n        }(1, 2, 3));\n\n        Object.preventExtensions(arg);\n        return !Object.isFrozen(arg);\n    }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen) && fnExists(Object.preventExtensions))"
   },
   {
    "id": "15.2.3.12-2-a-12",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-2-a-12.js",
    "description": "Object.isFrozen - 'O' is a String object",
    "test": "assertTrue((function testcase() {\n\n        var obj = new String(\"abc\");\n\n        obj.len = 100;\n\n        Object.preventExtensions(obj);\n\n        return !Object.isFrozen(obj);\n    }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen) && fnExists(Object.preventExtensions))"
   },
   {
    "id": "15.2.3.12-2-a-13",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-2-a-13.js",
    "description": "Object.isFrozen - 'O' is a Function object",
    "test": "assertTrue((function testcase() {\n\n        var obj = function () { };\n        \n        Object.defineProperty(obj, \"property\", {\n            value: 12,\n            writable: true,\n            configurable: false\n        });\n\n        Object.preventExtensions(obj);\n\n        return !Object.isFrozen(obj);\n    }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen) && fnExists(Object.preventExtensions) && fnExists(Object.defineProperty))"
   },
   {
    "id": "15.2.3.12-2-a-14",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-2-a-14.js",
    "description": "Object.isFrozen - 'O' is an Array object",
    "test": "assertTrue((function testcase() {\n\n        var obj = [2];\n        obj.len = 200;\n\n        Object.preventExtensions(obj);\n\n        return !Object.isFrozen(obj);\n    }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen) && fnExists(Object.preventExtensions))"
   },
   {
    "id": "15.2.3.12-2-a-2",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-2-a-2.js",
    "description": "Object.isFrozen - 'P' is own data property that overrides an inherited data property",
    "test": "assertTrue((function testcase() {\n\n        var proto = {};\n\n        Object.defineProperty(proto, \"foo\", {\n            value: 9,\n            writable: false,\n            configurable: false\n        });\n\n        var Con = function () { };\n        Con.prototype = proto;\n        var child = new Con();\n\n        Object.defineProperty(child, \"foo\", {\n            value: 12,\n            writable: true,\n            configurable: false\n        });\n\n        Object.preventExtensions(child);\n        return !Object.isFrozen(child);\n    }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen) && fnExists(Object.defineProperty) && fnExists(Object.preventExtensions))"
   },
   {
    "id": "15.2.3.12-2-a-3",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-2-a-3.js",
    "description": "Object.isFrozen - 'P' is own data property that overrides an inherited accessor property",
    "test": "assertTrue((function testcase() {\n\n        var proto = {};\n\n        Object.defineProperty(proto, \"foo\", {\n            get: function () {\n                return 9;\n            },\n            configurable: false\n        });\n\n        var Con = function () { };\n        Con.prototype = proto;\n        var child = new Con();\n\n\n        Object.defineProperty(child, \"foo\", {\n            value: 12,\n            configurable: true\n        });\n\n        Object.preventExtensions(child);\n        return !Object.isFrozen(child);\n    }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen) && fnExists(Object.defineProperty) && fnExists(Object.preventExtensions))"
   },
   {
    "id": "15.2.3.12-2-a-4",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-2-a-4.js",
    "description": "Object.isFrozen - 'P' is own accessor property",
    "test": "assertTrue((function testcase() {\n\n        var obj = {};\n        Object.defineProperty(obj, \"foo\", {\n            get: function () {\n                return 9;\n            },\n            configurable: true\n        });\n\n        Object.preventExtensions(obj);\n        return !Object.isFrozen(obj);\n    }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen) && fnExists(Object.defineProperty) && fnExists(Object.preventExtensions))"
   },
   {
    "id": "15.2.3.12-2-a-5",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-2-a-5.js",
    "description": "Object.isFrozen - 'P' is own accessor property that overrides an inherited data property",
    "test": "assertTrue((function testcase() {\n\n        var proto = {};\n\n        Object.defineProperty(proto, \"foo\", {\n            value: 12,\n            configurable: false\n        });\n\n        var Con = function () { };\n        Con.prototype = proto;\n        var child = new Con();\n\n        Object.defineProperty(child, \"foo\", {\n            get: function () {\n                return 9;\n            },\n            configurable: true\n        });\n\n        Object.preventExtensions(child);\n        return !Object.isFrozen(child);\n    }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen) && fnExists(Object.defineProperty) && fnExists(Object.preventExtensions))"
   },
   {
    "id": "15.2.3.12-2-a-6",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-2-a-6.js",
    "description": "Object.isFrozen - 'P' is own accessor property that overrides an inherited accessor property",
    "test": "assertTrue((function testcase() {\n\n        var proto = {};\n\n        Object.defineProperty(proto, \"foo\", {\n            get: function () {\n                return 12;\n            },\n            configurable: false\n        });\n\n        var Con = function () { };\n        Con.prototype = proto;\n        var child = new Con();\n\n\n        Object.defineProperty(child, \"foo\", {\n            get: function () {\n                return 9;\n            },\n            configurable: true\n        });\n\n        Object.preventExtensions(child);\n        return !Object.isFrozen(child);\n    }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen) && fnExists(Object.defineProperty) && fnExists(Object.preventExtensions))"
   },
   {
    "id": "15.2.3.12-2-a-7",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-2-a-7.js",
    "description": "Object.isFrozen - 'P' is own accessor property without a get function",
    "test": "assertTrue((function testcase() {\n\n        var obj = {};\n        Object.defineProperty(obj, \"foo\", {\n            set: function () { },\n            configurable: true\n        });\n\n        Object.preventExtensions(obj);\n        return !Object.isFrozen(obj);\n    }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen) && fnExists(Object.defineProperty) && fnExists(Object.preventExtensions))"
   },
   {
    "id": "15.2.3.12-2-a-8",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-2-a-8.js",
    "description": "Object.isFrozen - 'P' is own accessor property without a get function that overrides an inherited accessor property",
    "test": "assertTrue((function testcase() {\n\n        var proto = {};\n\n        Object.defineProperty(proto, \"foo\", {\n            get: function () {\n                return 9;\n            },\n            configurable: false\n        });\n\n        var Con = function () { };\n        Con.prototype = proto;\n        var child = new Con();\n\n        Object.defineProperty(child, \"foo\", {\n            set: function () { },\n            configurable: true\n        });\n\n        Object.preventExtensions(child);\n        return !Object.isFrozen(child);\n    }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen) && fnExists(Object.defineProperty) && fnExists(Object.preventExtensions))"
   },
   {
    "id": "15.2.3.12-2-b-i-1",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-2-b-i-1.js",
    "description": "Object.isFrozen returns false if 'O' contains own writable data property",
    "test": "assertTrue((function testcase() {\n\n        var obj = {};\n        Object.defineProperty(obj, \"foo\", {\n            value: 20,\n            writable: true,\n            configurable: false\n        });\n        Object.preventExtensions(obj);\n        return !Object.isFrozen(obj);\n\n    }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen) && fnExists(Object.defineProperty) && fnExists(Object.preventExtensions))"
   },
   {
    "id": "15.2.3.12-2-c-1",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-2-c-1.js",
    "description": "Object.isFrozen returns false if 'O' contains own configurable data property",
    "test": "assertTrue((function testcase() {\n\n        var obj = {};\n        Object.defineProperty(obj, \"foo\", {\n            value: 20,\n            writable: false,\n            configurable: true\n        });\n\n        Object.preventExtensions(obj);\n        return !Object.isFrozen(obj);\n\n    }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen) && fnExists(Object.defineProperty) && fnExists(Object.preventExtensions))"
   },
   {
    "id": "15.2.3.12-2-c-2",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-2-c-2.js",
    "description": "Object.isFrozen returns false if 'O' contains own configurable accessor property",
    "test": "assertTrue((function testcase() {\n\n        var obj = {};\n\n        function get_func() {\n            return 10;\n        }\n        function set_func() { }\n\n        Object.defineProperty(obj, \"foo\", {\n            get: get_func,\n            set: set_func,\n            configurable: true\n        });\n\n        Object.preventExtensions(obj);\n        return !Object.isFrozen(obj);\n\n    }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen) && fnExists(Object.defineProperty) && fnExists(Object.preventExtensions))"
   },
   {
    "id": "15.2.3.12-3-1",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-1.js",
    "description": "Object.isFrozen returns false for all built-in objects (Global)",
    "test": "assertTrue((function testcase() {\n  // in non-strict mode, 'this' is bound to the global object.\n  var b = Object.isFrozen(this);\n  if (b === false) {\n    return true;\n  }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-3-10",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-10.js",
    "description": "Object.isFrozen returns false for all built-in objects (Boolean)",
    "test": "assertTrue((function testcase() {\n  var b = Object.isFrozen(Boolean);\n  if (b === false) {\n    return true;\n  }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-3-11",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-11.js",
    "description": "Object.isFrozen returns false for all built-in objects (Boolean.prototype)",
    "test": "assertTrue((function testcase() {\n  var b = Object.isFrozen(Boolean.prototype);\n  if (b === false) {\n    return true;\n  }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-3-12",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-12.js",
    "description": "Object.isFrozen returns false for all built-in objects (Number)",
    "test": "assertTrue((function testcase() {\n  var b = Object.isFrozen(Number);\n  if (b === false) {\n    return true;\n  }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-3-13",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-13.js",
    "description": "Object.isFrozen returns false for all built-in objects (Number.prototype)",
    "test": "assertTrue((function testcase() {\n  var b = Object.isFrozen(Number.prototype);\n  if (b === false) {\n    return true;\n  }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-3-14",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-14.js",
    "description": "Object.isFrozen returns false for all built-in objects (Math)",
    "test": "assertTrue((function testcase() {\n  var b = Object.isFrozen(Math);\n  if (b === false) {\n    return true;\n  }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-3-15",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-15.js",
    "description": "Object.isFrozen returns false for all built-in objects (Date)",
    "test": "assertTrue((function testcase() {\n  var b = Object.isFrozen(Date);\n  if (b === false) {\n    return true;\n  }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-3-16",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-16.js",
    "description": "Object.isFrozen returns false for all built-in objects (Date.prototype)",
    "test": "assertTrue((function testcase() {\n  var b = Object.isFrozen(Date.prototype);\n  if (b === false) {\n    return true;\n  }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-3-17",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-17.js",
    "description": "Object.isFrozen returns false for all built-in objects (RegExp)",
    "test": "assertTrue((function testcase() {\n  var b = Object.isFrozen(RegExp);\n  if (b === false) {\n    return true;\n  }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-3-18",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-18.js",
    "description": "Object.isFrozen returns false for all built-in objects (RegExp.prototype)",
    "test": "assertTrue((function testcase() {\n  var b = Object.isFrozen(RegExp.prototype);\n  if (b === false) {\n    return true;\n  }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-3-19",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-19.js",
    "description": "Object.isFrozen returns false for all built-in objects (Error)",
    "test": "assertTrue((function testcase() {\n  var b = Object.isFrozen(Error);\n  if (b === false) {\n    return true;\n  }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-3-2",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-2.js",
    "description": "Object.isFrozen returns false for all built-in objects (Object)",
    "test": "assertTrue((function testcase() {\n  var b = Object.isFrozen(Object);\n  if (b === false) {\n    return true;\n  }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-3-20",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-20.js",
    "description": "Object.isFrozen returns false for all built-in objects (Error.prototype)",
    "test": "assertTrue((function testcase() {\n  var b = Object.isFrozen(Error.prototype);\n  if (b === false) {\n    return true;\n  }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-3-21",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-21.js",
    "description": "Object.isFrozen returns false for all built-in objects (EvalError)",
    "test": "assertTrue((function testcase() {\n  var b = Object.isFrozen(EvalError);\n  if (b === false) {\n    return true;\n  }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-3-22",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-22.js",
    "description": "Object.isFrozen returns false for all built-in objects (RangeError)",
    "test": "assertTrue((function testcase() {\n  var b = Object.isFrozen(RangeError);\n  if (b === false) {\n    return true;\n  }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-3-23",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-23.js",
    "description": "Object.isFrozen returns false for all built-in objects (ReferenceError)",
    "test": "assertTrue((function testcase() {\n  var b = Object.isFrozen(ReferenceError);\n  if (b === false) {\n    return true;\n  }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-3-24",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-24.js",
    "description": "Object.isFrozen returns false for all built-in objects (SyntaxError)",
    "test": "assertTrue((function testcase() {\n  var b = Object.isFrozen(SyntaxError);\n  if (b === false) {\n    return true;\n  }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-3-25",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-25.js",
    "description": "Object.isFrozen returns false for all built-in objects (TypeError)",
    "test": "assertTrue((function testcase() {\n  var b = Object.isFrozen(TypeError);\n  if (b === false) {\n    return true;\n  }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-3-26",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-26.js",
    "description": "Object.isFrozen returns false for all built-in objects (URIError)",
    "test": "assertTrue((function testcase() {\n  var b = Object.isFrozen(URIError);\n  if (b === false) {\n    return true;\n  }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-3-27",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-27.js",
    "description": "Object.isFrozen returns false for all built-in objects (JSON)",
    "test": "assertTrue((function testcase() {\n  var b = Object.isFrozen(JSON);\n  if (b === false) {\n    return true;\n  }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-3-28",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-28.js",
    "description": "Object.isFrozen returns true when all own properties of 'O' are not writable and not configurable, and 'O' is not extensible",
    "test": "assertTrue((function testcase() {\n\n        var obj = {};\n\n        Object.defineProperty(obj, \"foo1\", {\n            value: 20,\n            writable: false,\n            enumerable: false,\n            configurable: false\n        });\n\n\n        function get_func() {\n            return 10;\n        }\n        function set_func() { }\n\n        Object.defineProperty(obj, \"foo2\", {\n            get: get_func,\n            set: set_func,\n            configurable: false\n        });\n\n        Object.preventExtensions(obj);\n        return Object.isFrozen(obj);\n\n    }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen) && fnExists(Object.preventExtensions) && fnExists(Object.defineProperty))"
   },
   {
    "id": "15.2.3.12-3-3",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-3.js",
    "description": "Object.isFrozen returns false for all built-in objects (Object.prototype)",
    "test": "assertTrue((function testcase() {\n  var b = Object.isFrozen(Object.prototype);\n  if (b === false) {\n    return true;\n  }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-3-4",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-4.js",
    "description": "Object.isFrozen returns false for all built-in objects (Function)",
    "test": "assertTrue((function testcase() {\n  var b = Object.isFrozen(Function);\n  if (b === false) {\n    return true;\n  }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-3-5",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-5.js",
    "description": "Object.isFrozen returns false for all built-in objects (Function.prototype)",
    "test": "assertTrue((function testcase() {\n  var b = Object.isFrozen(Function.prototype);\n  if (b === false) {\n    return true;\n  }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-3-6",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-6.js",
    "description": "Object.isFrozen returns false for all built-in objects (Array)",
    "test": "assertTrue((function testcase() {\n  var b = Object.isFrozen(Array);\n  if (b === false) {\n    return true;\n  }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-3-7",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-7.js",
    "description": "Object.isFrozen returns false for all built-in objects (Array.prototype)",
    "test": "assertTrue((function testcase() {\n  var b = Object.isFrozen(Array.prototype);\n  if (b === false) {\n    return true;\n  }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-3-8",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-8.js",
    "description": "Object.isFrozen returns false for all built-in objects (String)",
    "test": "assertTrue((function testcase() {\n  var b = Object.isFrozen(String);\n  if (b === false) {\n    return true;\n  }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-3-9",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-9.js",
    "description": "Object.isFrozen returns false for all built-in objects (String.prototype)",
    "test": "assertTrue((function testcase() {\n  var b = Object.isFrozen(String.prototype);\n  if (b === false) {\n    return true;\n  }\n }).call(this));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   },
   {
    "id": "15.2.3.12-4-1",
    "path": "TestCases/chapter15/15.2/15.2.3/15.2.3.12/15.2.3.12-4-1.js",
    "description": "Object.isFrozen returns false if extensible is true",
    "test": "assertTrue((!Object.isFrozen({})));\n",
    "precondition": "(fnExists(Object.isFrozen))"
   }
  ]
 }
}