Replace runTestCase with assert helpers [test/built-ins/Object/is{Frozen, Extensible, Sealed}]

This commit is contained in:
André Bargull 2015-08-11 17:51:42 +02:00
parent 9cc4016866
commit 8d358cbd07
119 changed files with 196 additions and 786 deletions

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.13-0-1 es5id: 15.2.3.13-0-1
description: Object.isExtensible must exist as a function description: Object.isExtensible must exist as a function
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var f = Object.isExtensible ; var f = Object.isExtensible ;
if (typeof(f) === "function") {
return true; assert.sameValue(typeof(f), "function", 'typeof(f)');
}
}
runTestCase(testcase);

View File

@ -4,12 +4,6 @@
/*--- /*---
es5id: 15.2.3.13-0-2 es5id: 15.2.3.13-0-2
description: Object.isExtensible must exist as a function taking 1 parameter description: Object.isExtensible must exist as a function taking 1 parameter
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.isExtensible.length, 1, 'Object.isExtensible.length');
if (Object.isExtensible.length === 1) {
return true;
}
}
runTestCase(testcase);

View File

@ -9,14 +9,8 @@ es5id: 15.2.3.13-0-3
description: > description: >
Object.isExtensible is true for objects created using the Object Object.isExtensible is true for objects created using the Object
constructor constructor
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var o = new Object(); var o = new Object();
if (Object.isExtensible(o) === true) { assert.sameValue(Object.isExtensible(o), true, 'Object.isExtensible(o)');
return true;
}
}
runTestCase(testcase);

View File

@ -4,11 +4,6 @@
/*--- /*---
es5id: 15.2.3.13-1-1 es5id: 15.2.3.13-1-1
description: Object.isExtensible does not throw TypeError if 'O' is undefined description: Object.isExtensible does not throw TypeError if 'O' is undefined
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
Object.isExtensible(undefined); Object.isExtensible(undefined);
return true;
}
runTestCase(testcase);

View File

@ -4,11 +4,6 @@
/*--- /*---
es5id: 15.2.3.13-1-2 es5id: 15.2.3.13-1-2
description: Object.isExtensible does not throw TypeError if 'O' is null description: Object.isExtensible does not throw TypeError if 'O' is null
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
Object.isExtensible(null); Object.isExtensible(null);
return true;
}
runTestCase(testcase);

View File

@ -4,11 +4,6 @@
/*--- /*---
es5id: 15.2.3.13-1-3 es5id: 15.2.3.13-1-3
description: Object.isExtensible does not throw TypeError if 'O' is a boolean description: Object.isExtensible does not throw TypeError if 'O' is a boolean
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
Object.isExtensible(true); Object.isExtensible(true);
return true;
}
runTestCase(testcase);

View File

@ -4,11 +4,6 @@
/*--- /*---
es5id: 15.2.3.13-1-4 es5id: 15.2.3.13-1-4
description: Object.isExtensible does not throw TypeError if 'O' is a string description: Object.isExtensible does not throw TypeError if 'O' is a string
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
Object.isExtensible("abc"); Object.isExtensible("abc");
return true;
}
runTestCase(testcase);

View File

@ -6,11 +6,6 @@ es5id: 15.2.3.13-1
description: > description: >
Object.isExtensible does not throw TypeError if type of first Object.isExtensible does not throw TypeError if type of first
param is not Object param is not Object
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
Object.isExtensible(0); Object.isExtensible(0);
return true;
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.13-2-10 es5id: 15.2.3.13-2-10
description: Object.isExtensible returns true for all built-in objects (RegExp) description: Object.isExtensible returns true for all built-in objects (RegExp)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var e = Object.isExtensible(RegExp); var e = Object.isExtensible(RegExp);
if (e === true) {
return true; assert.sameValue(e, true, 'e');
}
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.13-2-11 es5id: 15.2.3.13-2-11
description: Object.isExtensible returns true for all built-in objects (Error) description: Object.isExtensible returns true for all built-in objects (Error)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var e = Object.isExtensible(Error); var e = Object.isExtensible(Error);
if (e === true) {
return true; assert.sameValue(e, true, 'e');
}
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.13-2-12 es5id: 15.2.3.13-2-12
description: Object.isExtensible returns true for all built-in objects (JSON) description: Object.isExtensible returns true for all built-in objects (JSON)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var e = Object.isExtensible(JSON); var e = Object.isExtensible(JSON);
if (e === true) {
return true; assert.sameValue(e, true, 'e');
}
}
runTestCase(testcase);

View File

@ -6,13 +6,8 @@ es5id: 15.2.3.13-2-13
description: > description: >
Object.isExtensible returns true for all built-in objects Object.isExtensible returns true for all built-in objects
(Function.constructor) (Function.constructor)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var e = Object.isExtensible(Function.constructor); var e = Object.isExtensible(Function.constructor);
if (e === true) {
return true; assert.sameValue(e, true, 'e');
}
}
runTestCase(testcase);

View File

@ -6,13 +6,8 @@ es5id: 15.2.3.13-2-14
description: > description: >
Object.isExtensible returns true for all built-in objects Object.isExtensible returns true for all built-in objects
(Function.prototype) (Function.prototype)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var e = Object.isExtensible(Function.prototype); var e = Object.isExtensible(Function.prototype);
if (e === true) {
return true; assert.sameValue(e, true, 'e');
}
}
runTestCase(testcase);

View File

@ -6,13 +6,8 @@ es5id: 15.2.3.13-2-15
description: > description: >
Object.isExtensible returns true for all built-in objects Object.isExtensible returns true for all built-in objects
(Array.prototype) (Array.prototype)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var e = Object.isExtensible(Array.prototype); var e = Object.isExtensible(Array.prototype);
if (e === true) {
return true; assert.sameValue(e, true, 'e');
}
}
runTestCase(testcase);

View File

@ -6,13 +6,8 @@ es5id: 15.2.3.13-2-16
description: > description: >
Object.isExtensible returns true for all built-in objects Object.isExtensible returns true for all built-in objects
(String.prototype) (String.prototype)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var e = Object.isExtensible(String.prototype); var e = Object.isExtensible(String.prototype);
if (e === true) {
return true; assert.sameValue(e, true, 'e');
}
}
runTestCase(testcase);

View File

@ -6,13 +6,8 @@ es5id: 15.2.3.13-2-17
description: > description: >
Object.isExtensible returns true for all built-in objects Object.isExtensible returns true for all built-in objects
(Boolean.prototype) (Boolean.prototype)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var e = Object.isExtensible(Boolean.prototype); var e = Object.isExtensible(Boolean.prototype);
if (e === true) {
return true; assert.sameValue(e, true, 'e');
}
}
runTestCase(testcase);

View File

@ -6,13 +6,8 @@ es5id: 15.2.3.13-2-18
description: > description: >
Object.isExtensible returns true for all built-in objects Object.isExtensible returns true for all built-in objects
(Number.prototype) (Number.prototype)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var e = Object.isExtensible(Number.prototype); var e = Object.isExtensible(Number.prototype);
if (e === true) {
return true; assert.sameValue(e, true, 'e');
}
}
runTestCase(testcase);

View File

@ -6,13 +6,8 @@ es5id: 15.2.3.13-2-19
description: > description: >
Object.isExtensible returns true for all built-in objects Object.isExtensible returns true for all built-in objects
(Date.prototype) (Date.prototype)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var e = Object.isExtensible(Date.prototype); var e = Object.isExtensible(Date.prototype);
if (e === true) {
return true; assert.sameValue(e, true, 'e');
}
}
runTestCase(testcase);

View File

@ -4,14 +4,9 @@
/*--- /*---
es5id: 15.2.3.13-2-2 es5id: 15.2.3.13-2-2
description: Object.isExtensible returns true for all built-in objects (Object) description: Object.isExtensible returns true for all built-in objects (Object)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var o = {}; var o = {};
var e = Object.isExtensible(o); var e = Object.isExtensible(o);
if (e === true) {
return true; assert.sameValue(e, true, 'e');
}
}
runTestCase(testcase);

View File

@ -6,13 +6,8 @@ es5id: 15.2.3.13-2-20
description: > description: >
Object.isExtensible returns true for all built-in objects Object.isExtensible returns true for all built-in objects
(RegExp.prototype) (RegExp.prototype)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var e = Object.isExtensible(RegExp.prototype); var e = Object.isExtensible(RegExp.prototype);
if (e === true) {
return true; assert.sameValue(e, true, 'e');
}
}
runTestCase(testcase);

View File

@ -16,13 +16,8 @@ es5id: 15.2.3.13-2-21
description: > description: >
Object.isExtensible returns true for all built-in objects Object.isExtensible returns true for all built-in objects
(Error.prototype) (Error.prototype)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var e = Object.isExtensible(Error.prototype); var e = Object.isExtensible(Error.prototype);
if (e === true) {
return true; assert.sameValue(e, true, 'e');
}
}
runTestCase(testcase);

View File

@ -4,12 +4,8 @@
/*--- /*---
es5id: 15.2.3.13-2-22 es5id: 15.2.3.13-2-22
description: Object.isExtensible returns true if 'O' is extensible description: Object.isExtensible returns true if 'O' is extensible
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
return Object.isExtensible(obj);
} assert(Object.isExtensible(obj), 'Object.isExtensible(obj) !== true');
runTestCase(testcase);

View File

@ -4,14 +4,9 @@
/*--- /*---
es5id: 15.2.3.13-2-23 es5id: 15.2.3.13-2-23
description: Object.isExtensible returns false if 'O' is not extensible description: Object.isExtensible returns false if 'O' is not extensible
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.preventExtensions(obj); Object.preventExtensions(obj);
return !Object.isExtensible(obj);
} assert.sameValue(Object.isExtensible(obj), false, 'Object.isExtensible(obj)');
runTestCase(testcase);

View File

@ -6,11 +6,8 @@ es5id: 15.2.3.13-2-24
description: > description: >
Object.isExtensible returns true if O is extensible and has a Object.isExtensible returns true if O is extensible and has a
prototype that is extensible prototype that is extensible
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var proto = {}; var proto = {};
var ConstructFun = function () { }; var ConstructFun = function () { };
@ -18,6 +15,4 @@ function testcase() {
var obj = new ConstructFun(); var obj = new ConstructFun();
return Object.isExtensible(obj); assert(Object.isExtensible(obj), 'Object.isExtensible(obj) !== true');
}
runTestCase(testcase);

View File

@ -6,11 +6,8 @@ es5id: 15.2.3.13-2-25
description: > description: >
Object.isExtensible returns true if O is extensible and has a Object.isExtensible returns true if O is extensible and has a
prototype that is not extensible prototype that is not extensible
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var proto = {}; var proto = {};
Object.preventExtensions(proto); Object.preventExtensions(proto);
@ -19,7 +16,4 @@ function testcase() {
var obj = new ConstructFun(); var obj = new ConstructFun();
return Object.isExtensible(obj); assert(Object.isExtensible(obj), 'Object.isExtensible(obj) !== true');
}
runTestCase(testcase);

View File

@ -6,11 +6,8 @@ es5id: 15.2.3.13-2-26
description: > description: >
Object.isExtensible returns false if O is not extensible and has a Object.isExtensible returns false if O is not extensible and has a
prototype that is extensible prototype that is extensible
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var proto = {}; var proto = {};
var ConstructFun = function () { }; var ConstructFun = function () { };
@ -19,7 +16,4 @@ function testcase() {
Object.preventExtensions(obj); Object.preventExtensions(obj);
return !Object.isExtensible(obj); assert.sameValue(Object.isExtensible(obj), false, 'Object.isExtensible(obj)');
}
runTestCase(testcase);

View File

@ -6,11 +6,8 @@ es5id: 15.2.3.13-2-27
description: > description: >
Object.isExtensible returns false if O is not extensible and has a Object.isExtensible returns false if O is not extensible and has a
prototype that is not extensible prototype that is not extensible
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var proto = {}; var proto = {};
Object.preventExtensions(proto); Object.preventExtensions(proto);
@ -20,7 +17,4 @@ function testcase() {
var obj = new ConstructFun(); var obj = new ConstructFun();
Object.preventExtensions(obj); Object.preventExtensions(obj);
return !Object.isExtensible(obj); assert.sameValue(Object.isExtensible(obj), false, 'Object.isExtensible(obj)');
}
runTestCase(testcase);

View File

@ -4,14 +4,7 @@
/*--- /*---
es5id: 15.2.3.13-2-29 es5id: 15.2.3.13-2-29
description: Object.isExtensible returns true for the global object description: Object.isExtensible returns true for the global object
includes: includes: [fnGlobalObject.js]
- runTestCase.js
- fnGlobalObject.js
---*/ ---*/
function testcase() { assert(Object.isExtensible(fnGlobalObject()), 'Object.isExtensible(fnGlobalObject()) !== true');
return Object.isExtensible(fnGlobalObject());
}
runTestCase(testcase);

View File

@ -6,15 +6,10 @@ es5id: 15.2.3.13-2-3
description: > description: >
Object.isExtensible returns true for all built-in objects Object.isExtensible returns true for all built-in objects
(Function) (Function)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
function foo() {} function foo() {}
var e = Object.isExtensible(foo); var e = Object.isExtensible(foo);
if (e === true) {
return true; assert.sameValue(e, true, 'e');
}
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.13-2-4 es5id: 15.2.3.13-2-4
description: Object.isExtensible returns true for all built-in objects (Array) description: Object.isExtensible returns true for all built-in objects (Array)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var e = Object.isExtensible(Array); var e = Object.isExtensible(Array);
if (e === true) {
return true; assert.sameValue(e, true, 'e');
}
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.13-2-5 es5id: 15.2.3.13-2-5
description: Object.isExtensible returns true for all built-in objects (String) description: Object.isExtensible returns true for all built-in objects (String)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var e = Object.isExtensible(String); var e = Object.isExtensible(String);
if (e === true) {
return true; assert.sameValue(e, true, 'e');
}
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.13-2-6 es5id: 15.2.3.13-2-6
description: Object.isExtensible returns true for all built-in objects (Boolean) description: Object.isExtensible returns true for all built-in objects (Boolean)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var e = Object.isExtensible(Boolean); var e = Object.isExtensible(Boolean);
if (e === true) {
return true; assert.sameValue(e, true, 'e');
}
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.13-2-7 es5id: 15.2.3.13-2-7
description: Object.isExtensible returns true for all built-in objects (Number) description: Object.isExtensible returns true for all built-in objects (Number)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var e = Object.isExtensible(Number); var e = Object.isExtensible(Number);
if (e === true) {
return true; assert.sameValue(e, true, 'e');
}
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.13-2-8 es5id: 15.2.3.13-2-8
description: Object.isExtensible returns true for all built-in objects (Math) description: Object.isExtensible returns true for all built-in objects (Math)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var e = Object.isExtensible(Math); var e = Object.isExtensible(Math);
if (e === true) {
return true; assert.sameValue(e, true, 'e');
}
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.13-2-9 es5id: 15.2.3.13-2-9
description: Object.isExtensible returns true for all built-in objects (Date) description: Object.isExtensible returns true for all built-in objects (Date)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var e = Object.isExtensible(Date); var e = Object.isExtensible(Date);
if (e === true) {
return true; assert.sameValue(e, true, 'e');
}
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.12-0-1 es5id: 15.2.3.12-0-1
description: Object.isFrozen must exist as a function description: Object.isFrozen must exist as a function
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var f = Object.isFrozen; var f = Object.isFrozen;
if (typeof(f) === "function") {
return true; assert.sameValue(typeof(f), "function", 'typeof(f)');
}
}
runTestCase(testcase);

View File

@ -4,12 +4,6 @@
/*--- /*---
es5id: 15.2.3.12-0-2 es5id: 15.2.3.12-0-2
description: Object.isFrozen must exist as a function taking 1 parameter description: Object.isFrozen must exist as a function taking 1 parameter
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.isFrozen.length, 1, 'Object.isFrozen.length');
if (Object.isFrozen.length === 1) {
return true;
}
}
runTestCase(testcase);

View File

@ -6,11 +6,6 @@ es5id: 15.2.3.12-1-1
description: > description: >
Object.isFrozen - TypeError is not thrown when the first param 'O' Object.isFrozen - TypeError is not thrown when the first param 'O'
is undefined is undefined
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
Object.isFrozen(undefined); Object.isFrozen(undefined);
return true;
}
runTestCase(testcase);

View File

@ -6,11 +6,6 @@ es5id: 15.2.3.12-1-2
description: > description: >
Object.isFrozen - TypeError is not thrown when the first param 'O' Object.isFrozen - TypeError is not thrown when the first param 'O'
is null is null
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
Object.isFrozen(null); Object.isFrozen(null);
return true;
}
runTestCase(testcase);

View File

@ -6,11 +6,6 @@ es5id: 15.2.3.12-1-3
description: > description: >
Object.isFrozen - TypeError is not thrown when the first param 'O' Object.isFrozen - TypeError is not thrown when the first param 'O'
is a boolean is a boolean
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
Object.isFrozen(true); Object.isFrozen(true);
return true;
}
runTestCase(testcase);

View File

@ -6,11 +6,6 @@ es5id: 15.2.3.12-1-4
description: > description: >
Object.isFrozen - TypeError is not thrown when the first param 'O' Object.isFrozen - TypeError is not thrown when the first param 'O'
is a string is a string
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
Object.isFrozen("abc"); Object.isFrozen("abc");
return true;
}
runTestCase(testcase);

View File

@ -4,11 +4,8 @@
/*--- /*---
es5id: 15.2.3.12-1-5 es5id: 15.2.3.12-1-5
description: Object.isFrozen applies to dense array description: Object.isFrozen applies to dense array
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = Object.freeze([0, 1, 2]); var obj = Object.freeze([0, 1, 2]);
return Object.isFrozen(obj);
} assert(Object.isFrozen(obj), 'Object.isFrozen(obj) !== true');
runTestCase(testcase);

View File

@ -4,14 +4,11 @@
/*--- /*---
es5id: 15.2.3.12-1-6 es5id: 15.2.3.12-1-6
description: Object.isFrozen applies to sparse array description: Object.isFrozen applies to sparse array
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var sparseArr = [0, 1]; var sparseArr = [0, 1];
sparseArr[10000] = 10000; sparseArr[10000] = 10000;
sparseArr = Object.freeze(sparseArr); sparseArr = Object.freeze(sparseArr);
return Object.isFrozen(sparseArr);
} assert(Object.isFrozen(sparseArr), 'Object.isFrozen(sparseArr) !== true');
runTestCase(testcase);

View File

@ -6,11 +6,8 @@ es5id: 15.2.3.12-1-7
description: > description: >
Object.isFrozen applies to non-array object which contains index Object.isFrozen applies to non-array object which contains index
named properties named properties
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = Object.freeze({ 0: 0, 1: 1, 1000: 1000 }); var obj = Object.freeze({ 0: 0, 1: 1, 1000: 1000 });
return Object.isFrozen(obj);
} assert(Object.isFrozen(obj), 'Object.isFrozen(obj) !== true');
runTestCase(testcase);

View File

@ -6,11 +6,6 @@ es5id: 15.2.3.12-1
description: > description: >
Object.isFrozen does not throw TypeError if type of first param is Object.isFrozen does not throw TypeError if type of first param is
not Object not Object
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
Object.isFrozen(0); Object.isFrozen(0);
return true;
}
runTestCase(testcase);

View File

@ -6,11 +6,8 @@ es5id: 15.2.3.12-2-1
description: > description: >
Object.isFrozen - inherited data property is not considered into Object.isFrozen - inherited data property is not considered into
the for each loop the for each loop
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var proto = {}; var proto = {};
Object.defineProperty(proto, "Father", { Object.defineProperty(proto, "Father", {
value: 10, value: 10,
@ -25,7 +22,4 @@ function testcase() {
Object.preventExtensions(child); Object.preventExtensions(child);
return Object.isFrozen(child); assert(Object.isFrozen(child), 'Object.isFrozen(child) !== true');
}
runTestCase(testcase);

View File

@ -6,11 +6,8 @@ es5id: 15.2.3.12-2-2
description: > description: >
Object.isFrozen - inherited accessor property is not considered Object.isFrozen - inherited accessor property is not considered
into the for each loop into the for each loop
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var proto = {}; var proto = {};
function get_func() { function get_func() {
@ -31,7 +28,4 @@ function testcase() {
Object.preventExtensions(child); Object.preventExtensions(child);
return Object.isFrozen(child); assert(Object.isFrozen(child), 'Object.isFrozen(child) !== true');
}
runTestCase(testcase);

View File

@ -4,11 +4,8 @@
/*--- /*---
es5id: 15.2.3.12-2-a-1 es5id: 15.2.3.12-2-a-1
description: Object.isFrozen - 'P' is own data property description: Object.isFrozen - 'P' is own data property
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, "foo", { Object.defineProperty(obj, "foo", {
@ -19,6 +16,4 @@ function testcase() {
Object.preventExtensions(obj); Object.preventExtensions(obj);
return !Object.isFrozen(obj); assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)');
}
runTestCase(testcase);

View File

@ -4,11 +4,8 @@
/*--- /*---
es5id: 15.2.3.12-2-a-11 es5id: 15.2.3.12-2-a-11
description: Object.isFrozen - 'O' is the Arguments object description: Object.isFrozen - 'O' is the Arguments object
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var arg; var arg;
(function fun() { (function fun() {
@ -16,6 +13,5 @@ function testcase() {
}(1, 2, 3)); }(1, 2, 3));
Object.preventExtensions(arg); Object.preventExtensions(arg);
return !Object.isFrozen(arg);
} assert.sameValue(Object.isFrozen(arg), false, 'Object.isFrozen(arg)');
runTestCase(testcase);

View File

@ -4,17 +4,12 @@
/*--- /*---
es5id: 15.2.3.12-2-a-12 es5id: 15.2.3.12-2-a-12
description: Object.isFrozen - 'O' is a String object description: Object.isFrozen - 'O' is a String object
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = new String("abc"); var obj = new String("abc");
obj.len = 100; obj.len = 100;
Object.preventExtensions(obj); Object.preventExtensions(obj);
return !Object.isFrozen(obj); assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)');
}
runTestCase(testcase);

View File

@ -4,11 +4,8 @@
/*--- /*---
es5id: 15.2.3.12-2-a-13 es5id: 15.2.3.12-2-a-13
description: Object.isFrozen - 'O' is a Function object description: Object.isFrozen - 'O' is a Function object
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = function () { }; var obj = function () { };
Object.defineProperty(obj, "property", { Object.defineProperty(obj, "property", {
@ -19,6 +16,4 @@ function testcase() {
Object.preventExtensions(obj); Object.preventExtensions(obj);
return !Object.isFrozen(obj); assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)');
}
runTestCase(testcase);

View File

@ -4,16 +4,11 @@
/*--- /*---
es5id: 15.2.3.12-2-a-14 es5id: 15.2.3.12-2-a-14
description: Object.isFrozen - 'O' is an Array object description: Object.isFrozen - 'O' is an Array object
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = [2]; var obj = [2];
obj.len = 200; obj.len = 200;
Object.preventExtensions(obj); Object.preventExtensions(obj);
return !Object.isFrozen(obj); assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)');
}
runTestCase(testcase);

View File

@ -6,11 +6,8 @@ es5id: 15.2.3.12-2-a-2
description: > description: >
Object.isFrozen - 'P' is own data property that overrides an Object.isFrozen - 'P' is own data property that overrides an
inherited data property inherited data property
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var proto = {}; var proto = {};
Object.defineProperty(proto, "foo", { Object.defineProperty(proto, "foo", {
@ -30,6 +27,5 @@ function testcase() {
}); });
Object.preventExtensions(child); Object.preventExtensions(child);
return !Object.isFrozen(child);
} assert.sameValue(Object.isFrozen(child), false, 'Object.isFrozen(child)');
runTestCase(testcase);

View File

@ -6,11 +6,8 @@ es5id: 15.2.3.12-2-a-3
description: > description: >
Object.isFrozen - 'P' is own data property that overrides an Object.isFrozen - 'P' is own data property that overrides an
inherited accessor property inherited accessor property
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var proto = {}; var proto = {};
Object.defineProperty(proto, "foo", { Object.defineProperty(proto, "foo", {
@ -31,6 +28,5 @@ function testcase() {
}); });
Object.preventExtensions(child); Object.preventExtensions(child);
return !Object.isFrozen(child);
} assert.sameValue(Object.isFrozen(child), false, 'Object.isFrozen(child)');
runTestCase(testcase);

View File

@ -4,11 +4,8 @@
/*--- /*---
es5id: 15.2.3.12-2-a-4 es5id: 15.2.3.12-2-a-4
description: Object.isFrozen - 'P' is own accessor property description: Object.isFrozen - 'P' is own accessor property
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, "foo", { Object.defineProperty(obj, "foo", {
get: function () { get: function () {
@ -18,6 +15,5 @@ function testcase() {
}); });
Object.preventExtensions(obj); Object.preventExtensions(obj);
return !Object.isFrozen(obj);
} assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)');
runTestCase(testcase);

View File

@ -6,11 +6,8 @@ es5id: 15.2.3.12-2-a-5
description: > description: >
Object.isFrozen - 'P' is own accessor property that overrides an Object.isFrozen - 'P' is own accessor property that overrides an
inherited data property inherited data property
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var proto = {}; var proto = {};
Object.defineProperty(proto, "foo", { Object.defineProperty(proto, "foo", {
@ -30,6 +27,5 @@ function testcase() {
}); });
Object.preventExtensions(child); Object.preventExtensions(child);
return !Object.isFrozen(child);
} assert.sameValue(Object.isFrozen(child), false, 'Object.isFrozen(child)');
runTestCase(testcase);

View File

@ -6,11 +6,8 @@ es5id: 15.2.3.12-2-a-6
description: > description: >
Object.isFrozen - 'P' is own accessor property that overrides an Object.isFrozen - 'P' is own accessor property that overrides an
inherited accessor property inherited accessor property
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var proto = {}; var proto = {};
Object.defineProperty(proto, "foo", { Object.defineProperty(proto, "foo", {
@ -33,6 +30,5 @@ function testcase() {
}); });
Object.preventExtensions(child); Object.preventExtensions(child);
return !Object.isFrozen(child);
} assert.sameValue(Object.isFrozen(child), false, 'Object.isFrozen(child)');
runTestCase(testcase);

View File

@ -6,11 +6,8 @@ es5id: 15.2.3.12-2-a-7
description: > description: >
Object.isFrozen - 'P' is own accessor property without a get Object.isFrozen - 'P' is own accessor property without a get
function function
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, "foo", { Object.defineProperty(obj, "foo", {
set: function () { }, set: function () { },
@ -18,6 +15,5 @@ function testcase() {
}); });
Object.preventExtensions(obj); Object.preventExtensions(obj);
return !Object.isFrozen(obj);
} assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)');
runTestCase(testcase);

View File

@ -6,11 +6,8 @@ es5id: 15.2.3.12-2-a-8
description: > description: >
Object.isFrozen - 'P' is own accessor property without a get Object.isFrozen - 'P' is own accessor property without a get
function that overrides an inherited accessor property function that overrides an inherited accessor property
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var proto = {}; var proto = {};
Object.defineProperty(proto, "foo", { Object.defineProperty(proto, "foo", {
@ -30,6 +27,5 @@ function testcase() {
}); });
Object.preventExtensions(child); Object.preventExtensions(child);
return !Object.isFrozen(child);
} assert.sameValue(Object.isFrozen(child), false, 'Object.isFrozen(child)');
runTestCase(testcase);

View File

@ -6,11 +6,8 @@ es5id: 15.2.3.12-2-b-i-1
description: > description: >
Object.isFrozen returns false if 'O' contains own writable data Object.isFrozen returns false if 'O' contains own writable data
property property
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, "foo", { Object.defineProperty(obj, "foo", {
value: 20, value: 20,
@ -18,7 +15,5 @@ function testcase() {
configurable: false configurable: false
}); });
Object.preventExtensions(obj); Object.preventExtensions(obj);
return !Object.isFrozen(obj);
} assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)');
runTestCase(testcase);

View File

@ -6,11 +6,8 @@ es5id: 15.2.3.12-2-c-1
description: > description: >
Object.isFrozen returns false if 'O' contains own configurable Object.isFrozen returns false if 'O' contains own configurable
data property data property
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, "foo", { Object.defineProperty(obj, "foo", {
value: 20, value: 20,
@ -19,7 +16,5 @@ function testcase() {
}); });
Object.preventExtensions(obj); Object.preventExtensions(obj);
return !Object.isFrozen(obj);
} assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)');
runTestCase(testcase);

View File

@ -6,11 +6,8 @@ es5id: 15.2.3.12-2-c-2
description: > description: >
Object.isFrozen returns false if 'O' contains own configurable Object.isFrozen returns false if 'O' contains own configurable
accessor property accessor property
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
function get_func() { function get_func() {
@ -25,7 +22,5 @@ function testcase() {
}); });
Object.preventExtensions(obj); Object.preventExtensions(obj);
return !Object.isFrozen(obj);
} assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)');
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.12-3-10 es5id: 15.2.3.12-3-10
description: Object.isFrozen returns false for all built-in objects (Boolean) description: Object.isFrozen returns false for all built-in objects (Boolean)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isFrozen(Boolean); var b = Object.isFrozen(Boolean);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -6,13 +6,8 @@ es5id: 15.2.3.12-3-11
description: > description: >
Object.isFrozen returns false for all built-in objects Object.isFrozen returns false for all built-in objects
(Boolean.prototype) (Boolean.prototype)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isFrozen(Boolean.prototype); var b = Object.isFrozen(Boolean.prototype);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.12-3-12 es5id: 15.2.3.12-3-12
description: Object.isFrozen returns false for all built-in objects (Number) description: Object.isFrozen returns false for all built-in objects (Number)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isFrozen(Number); var b = Object.isFrozen(Number);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -6,13 +6,8 @@ es5id: 15.2.3.12-3-13
description: > description: >
Object.isFrozen returns false for all built-in objects Object.isFrozen returns false for all built-in objects
(Number.prototype) (Number.prototype)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isFrozen(Number.prototype); var b = Object.isFrozen(Number.prototype);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.12-3-14 es5id: 15.2.3.12-3-14
description: Object.isFrozen returns false for all built-in objects (Math) description: Object.isFrozen returns false for all built-in objects (Math)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isFrozen(Math); var b = Object.isFrozen(Math);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.12-3-15 es5id: 15.2.3.12-3-15
description: Object.isFrozen returns false for all built-in objects (Date) description: Object.isFrozen returns false for all built-in objects (Date)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isFrozen(Date); var b = Object.isFrozen(Date);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -6,13 +6,8 @@ es5id: 15.2.3.12-3-16
description: > description: >
Object.isFrozen returns false for all built-in objects Object.isFrozen returns false for all built-in objects
(Date.prototype) (Date.prototype)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isFrozen(Date.prototype); var b = Object.isFrozen(Date.prototype);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.12-3-17 es5id: 15.2.3.12-3-17
description: Object.isFrozen returns false for all built-in objects (RegExp) description: Object.isFrozen returns false for all built-in objects (RegExp)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isFrozen(RegExp); var b = Object.isFrozen(RegExp);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -6,13 +6,8 @@ es5id: 15.2.3.12-3-18
description: > description: >
Object.isFrozen returns false for all built-in objects Object.isFrozen returns false for all built-in objects
(RegExp.prototype) (RegExp.prototype)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isFrozen(RegExp.prototype); var b = Object.isFrozen(RegExp.prototype);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.12-3-19 es5id: 15.2.3.12-3-19
description: Object.isFrozen returns false for all built-in objects (Error) description: Object.isFrozen returns false for all built-in objects (Error)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isFrozen(Error); var b = Object.isFrozen(Error);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.12-3-2 es5id: 15.2.3.12-3-2
description: Object.isFrozen returns false for all built-in objects (Object) description: Object.isFrozen returns false for all built-in objects (Object)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isFrozen(Object); var b = Object.isFrozen(Object);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -6,13 +6,8 @@ es5id: 15.2.3.12-3-20
description: > description: >
Object.isFrozen returns false for all built-in objects Object.isFrozen returns false for all built-in objects
(Error.prototype) (Error.prototype)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isFrozen(Error.prototype); var b = Object.isFrozen(Error.prototype);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.12-3-21 es5id: 15.2.3.12-3-21
description: Object.isFrozen returns false for all built-in objects (EvalError) description: Object.isFrozen returns false for all built-in objects (EvalError)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isFrozen(EvalError); var b = Object.isFrozen(EvalError);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.12-3-22 es5id: 15.2.3.12-3-22
description: Object.isFrozen returns false for all built-in objects (RangeError) description: Object.isFrozen returns false for all built-in objects (RangeError)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isFrozen(RangeError); var b = Object.isFrozen(RangeError);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -6,13 +6,8 @@ es5id: 15.2.3.12-3-23
description: > description: >
Object.isFrozen returns false for all built-in objects Object.isFrozen returns false for all built-in objects
(ReferenceError) (ReferenceError)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isFrozen(ReferenceError); var b = Object.isFrozen(ReferenceError);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -6,13 +6,8 @@ es5id: 15.2.3.12-3-24
description: > description: >
Object.isFrozen returns false for all built-in objects Object.isFrozen returns false for all built-in objects
(SyntaxError) (SyntaxError)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isFrozen(SyntaxError); var b = Object.isFrozen(SyntaxError);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.12-3-25 es5id: 15.2.3.12-3-25
description: Object.isFrozen returns false for all built-in objects (TypeError) description: Object.isFrozen returns false for all built-in objects (TypeError)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isFrozen(TypeError); var b = Object.isFrozen(TypeError);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.12-3-26 es5id: 15.2.3.12-3-26
description: Object.isFrozen returns false for all built-in objects (URIError) description: Object.isFrozen returns false for all built-in objects (URIError)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isFrozen(URIError); var b = Object.isFrozen(URIError);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.12-3-27 es5id: 15.2.3.12-3-27
description: Object.isFrozen returns false for all built-in objects (JSON) description: Object.isFrozen returns false for all built-in objects (JSON)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isFrozen(JSON); var b = Object.isFrozen(JSON);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -6,11 +6,8 @@ es5id: 15.2.3.12-3-28
description: > description: >
Object.isFrozen returns true when all own properties of 'O' are Object.isFrozen returns true when all own properties of 'O' are
not writable and not configurable, and 'O' is not extensible not writable and not configurable, and 'O' is not extensible
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, "foo1", { Object.defineProperty(obj, "foo1", {
@ -33,7 +30,5 @@ function testcase() {
}); });
Object.preventExtensions(obj); Object.preventExtensions(obj);
return Object.isFrozen(obj);
} assert(Object.isFrozen(obj), 'Object.isFrozen(obj) !== true');
runTestCase(testcase);

View File

@ -6,13 +6,8 @@ es5id: 15.2.3.12-3-3
description: > description: >
Object.isFrozen returns false for all built-in objects Object.isFrozen returns false for all built-in objects
(Object.prototype) (Object.prototype)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isFrozen(Object.prototype); var b = Object.isFrozen(Object.prototype);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.12-3-4 es5id: 15.2.3.12-3-4
description: Object.isFrozen returns false for all built-in objects (Function) description: Object.isFrozen returns false for all built-in objects (Function)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isFrozen(Function); var b = Object.isFrozen(Function);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -6,13 +6,8 @@ es5id: 15.2.3.12-3-5
description: > description: >
Object.isFrozen returns false for all built-in objects Object.isFrozen returns false for all built-in objects
(Function.prototype) (Function.prototype)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isFrozen(Function.prototype); var b = Object.isFrozen(Function.prototype);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.12-3-6 es5id: 15.2.3.12-3-6
description: Object.isFrozen returns false for all built-in objects (Array) description: Object.isFrozen returns false for all built-in objects (Array)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isFrozen(Array); var b = Object.isFrozen(Array);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -6,13 +6,8 @@ es5id: 15.2.3.12-3-7
description: > description: >
Object.isFrozen returns false for all built-in objects Object.isFrozen returns false for all built-in objects
(Array.prototype) (Array.prototype)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isFrozen(Array.prototype); var b = Object.isFrozen(Array.prototype);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.12-3-8 es5id: 15.2.3.12-3-8
description: Object.isFrozen returns false for all built-in objects (String) description: Object.isFrozen returns false for all built-in objects (String)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isFrozen(String); var b = Object.isFrozen(String);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -6,13 +6,8 @@ es5id: 15.2.3.12-3-9
description: > description: >
Object.isFrozen returns false for all built-in objects Object.isFrozen returns false for all built-in objects
(String.prototype) (String.prototype)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isFrozen(String.prototype); var b = Object.isFrozen(String.prototype);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -4,10 +4,6 @@
/*--- /*---
es5id: 15.2.3.12-4-1 es5id: 15.2.3.12-4-1
description: Object.isFrozen returns false if extensible is true description: Object.isFrozen returns false if extensible is true
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.isFrozen({}), false, 'Object.isFrozen({})');
return !Object.isFrozen({});
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.11-0-1 es5id: 15.2.3.11-0-1
description: Object.isSealed must exist as a function description: Object.isSealed must exist as a function
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var f = Object.isSealed; var f = Object.isSealed;
if (typeof(f) === "function") {
return true; assert.sameValue(typeof(f), "function", 'typeof(f)');
}
}
runTestCase(testcase);

View File

@ -4,12 +4,6 @@
/*--- /*---
es5id: 15.2.3.11-0-2 es5id: 15.2.3.11-0-2
description: Object.isSealed must exist as a function taking 1 parameter description: Object.isSealed must exist as a function taking 1 parameter
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.isSealed.length, 1, 'Object.isSealed.length');
if (Object.isSealed.length === 1) {
return true;
}
}
runTestCase(testcase);

View File

@ -6,11 +6,6 @@ es5id: 15.2.3.11-1
description: > description: >
Object.isSealed does not throw TypeError if type of first param is Object.isSealed does not throw TypeError if type of first param is
not Object not Object
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
Object.isSealed(0); Object.isSealed(0);
return true;
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.11-4-10 es5id: 15.2.3.11-4-10
description: Object.isSealed returns false for all built-in objects (Boolean) description: Object.isSealed returns false for all built-in objects (Boolean)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isSealed(Boolean); var b = Object.isSealed(Boolean);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -6,13 +6,8 @@ es5id: 15.2.3.11-4-11
description: > description: >
Object.isSealed returns false for all built-in objects Object.isSealed returns false for all built-in objects
(Boolean.prototype) (Boolean.prototype)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isSealed(Boolean.prototype); var b = Object.isSealed(Boolean.prototype);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.11-4-12 es5id: 15.2.3.11-4-12
description: Object.isSealed returns false for all built-in objects (Number) description: Object.isSealed returns false for all built-in objects (Number)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isSealed(Number); var b = Object.isSealed(Number);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -6,13 +6,8 @@ es5id: 15.2.3.11-4-13
description: > description: >
Object.isSealed returns false for all built-in objects Object.isSealed returns false for all built-in objects
(Number.prototype) (Number.prototype)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isSealed(Number.prototype); var b = Object.isSealed(Number.prototype);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.11-4-14 es5id: 15.2.3.11-4-14
description: Object.isSealed returns false for all built-in objects (Math) description: Object.isSealed returns false for all built-in objects (Math)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isSealed(Math); var b = Object.isSealed(Math);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.11-4-15 es5id: 15.2.3.11-4-15
description: Object.isSealed returns false for all built-in objects (Date) description: Object.isSealed returns false for all built-in objects (Date)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isSealed(Date); var b = Object.isSealed(Date);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

View File

@ -6,13 +6,8 @@ es5id: 15.2.3.11-4-16
description: > description: >
Object.isSealed returns false for all built-in objects Object.isSealed returns false for all built-in objects
(Date.prototype) (Date.prototype)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var b = Object.isSealed(Date.prototype); var b = Object.isSealed(Date.prototype);
if (b === false) {
return true; assert.sameValue(b, false, 'b');
}
}
runTestCase(testcase);

Some files were not shown because too many files have changed in this diff Show More