Replace runTestCase with assert helpers [test/built-ins/Object/defineProperty]

This commit is contained in:
André Bargull 2015-08-11 17:52:55 +02:00
parent c2a61d1735
commit 0a37298b46
432 changed files with 972 additions and 2293 deletions

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 15.2.3.6-0-1 es5id: 15.2.3.6-0-1
description: Object.defineProperty must exist as a function description: Object.defineProperty must exist as a function
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var f = Object.defineProperty; var f = Object.defineProperty;
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.6-0-2 es5id: 15.2.3.6-0-2
description: Object.defineProperty must exist as a function taking 3 parameters description: Object.defineProperty must exist as a function taking 3 parameters
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.defineProperty.length, 3, 'Object.defineProperty.length');
if (Object.defineProperty.length === 3) {
return true;
}
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-1
description: > description: >
Object.defineProperty - argument 'P' is undefined that converts to Object.defineProperty - argument 'P' is undefined that converts to
string 'undefined' string 'undefined'
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, undefined, {}); Object.defineProperty(obj, undefined, {});
return obj.hasOwnProperty("undefined"); assert(obj.hasOwnProperty("undefined"), 'obj.hasOwnProperty("undefined") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-10
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
a string (value is a negative number) a string (value is a negative number)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, -20, {}); Object.defineProperty(obj, -20, {});
return obj.hasOwnProperty("-20"); assert(obj.hasOwnProperty("-20"), 'obj.hasOwnProperty("-20") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-11
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
a string (value is Infinity) a string (value is Infinity)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, Infinity, {}); Object.defineProperty(obj, Infinity, {});
return obj.hasOwnProperty("Infinity"); assert(obj.hasOwnProperty("Infinity"), 'obj.hasOwnProperty("Infinity") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-12
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
a string (value is +Infinity) a string (value is +Infinity)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, +Infinity, {}); Object.defineProperty(obj, +Infinity, {});
return obj.hasOwnProperty("Infinity"); assert(obj.hasOwnProperty("Infinity"), 'obj.hasOwnProperty("Infinity") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-13
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
a string (value is -Infinity) a string (value is -Infinity)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, -Infinity, {}); Object.defineProperty(obj, -Infinity, {});
return obj.hasOwnProperty("-Infinity"); assert(obj.hasOwnProperty("-Infinity"), 'obj.hasOwnProperty("-Infinity") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-14
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
a string (value is 1(following 20 zeros)) a string (value is 1(following 20 zeros))
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, 100000000000000000000, {}); Object.defineProperty(obj, 100000000000000000000, {});
return obj.hasOwnProperty("100000000000000000000"); assert(obj.hasOwnProperty("100000000000000000000"), 'obj.hasOwnProperty("100000000000000000000") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-15
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
a string (value is 1(following 21 zeros)) a string (value is 1(following 21 zeros))
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, 1000000000000000000000, {}); Object.defineProperty(obj, 1000000000000000000000, {});
return obj.hasOwnProperty("1e+21"); assert(obj.hasOwnProperty("1e+21"), 'obj.hasOwnProperty("1e+21") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-16
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
a string (value is 1(following 22 zeros)) a string (value is 1(following 22 zeros))
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, 10000000000000000000000, {}); Object.defineProperty(obj, 10000000000000000000000, {});
return obj.hasOwnProperty("1e+22"); assert(obj.hasOwnProperty("1e+22"), 'obj.hasOwnProperty("1e+22") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-17-1
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
a string (value is 1) a string (value is 1)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, 1, {}); Object.defineProperty(obj, 1, {});
return obj.hasOwnProperty("1"); assert(obj.hasOwnProperty("1"), 'obj.hasOwnProperty("1") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-17
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
a string (value is 1e+20) a string (value is 1e+20)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, 1e+20, {}); Object.defineProperty(obj, 1e+20, {});
return obj.hasOwnProperty("100000000000000000000"); assert(obj.hasOwnProperty("100000000000000000000"), 'obj.hasOwnProperty("100000000000000000000") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-18
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
string (value is 1e+21) string (value is 1e+21)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, 1e+21, {}); Object.defineProperty(obj, 1e+21, {});
return obj.hasOwnProperty("1e+21"); assert(obj.hasOwnProperty("1e+21"), 'obj.hasOwnProperty("1e+21") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-19
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
string (value is 1e+22) string (value is 1e+22)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, 1e+22, {}); Object.defineProperty(obj, 1e+22, {});
return obj.hasOwnProperty("1e+22"); assert(obj.hasOwnProperty("1e+22"), 'obj.hasOwnProperty("1e+22") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-2
description: > description: >
Object.defineProperty - argument 'P' is null that converts to Object.defineProperty - argument 'P' is null that converts to
string 'null' string 'null'
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, null, {}); Object.defineProperty(obj, null, {});
return obj.hasOwnProperty("null"); assert(obj.hasOwnProperty("null"), 'obj.hasOwnProperty("null") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-20
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
a string (value is 0.000001) a string (value is 0.000001)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, 0.000001, {}); Object.defineProperty(obj, 0.000001, {});
return obj.hasOwnProperty("0.000001"); assert(obj.hasOwnProperty("0.000001"), 'obj.hasOwnProperty("0.000001") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-21
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
a string (value is 0.0000001) a string (value is 0.0000001)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, 0.0000001, {}); Object.defineProperty(obj, 0.0000001, {});
return obj.hasOwnProperty("1e-7"); assert(obj.hasOwnProperty("1e-7"), 'obj.hasOwnProperty("1e-7") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-22
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
a string (value is 0.00000001) a string (value is 0.00000001)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, 0.00000001, {}); Object.defineProperty(obj, 0.00000001, {});
return obj.hasOwnProperty("1e-8"); assert(obj.hasOwnProperty("1e-8"), 'obj.hasOwnProperty("1e-8") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-23
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
a string (value is 1e-7) a string (value is 1e-7)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, 1e-7, {}); Object.defineProperty(obj, 1e-7, {});
return obj.hasOwnProperty("1e-7"); assert(obj.hasOwnProperty("1e-7"), 'obj.hasOwnProperty("1e-7") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-24
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
a string (value is 1e-6) a string (value is 1e-6)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, 1e-6, {}); Object.defineProperty(obj, 1e-6, {});
return obj.hasOwnProperty("0.000001"); assert(obj.hasOwnProperty("0.000001"), 'obj.hasOwnProperty("0.000001") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-25
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
a string (value is 1e-5) a string (value is 1e-5)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, 1e-5, {}); Object.defineProperty(obj, 1e-5, {});
return obj.hasOwnProperty("0.00001"); assert(obj.hasOwnProperty("0.00001"), 'obj.hasOwnProperty("0.00001") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-26
description: > description: >
Object.defineProperty - argument 'P' is an integer that converts Object.defineProperty - argument 'P' is an integer that converts
to a string (value is 123) to a string (value is 123)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, 123, {}); Object.defineProperty(obj, 123, {});
return obj.hasOwnProperty("123"); assert(obj.hasOwnProperty("123"), 'obj.hasOwnProperty("123") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-27
description: > description: >
Object.defineProperty - argument 'P' is a decimal that converts to Object.defineProperty - argument 'P' is a decimal that converts to
a string (value is 123.456) a string (value is 123.456)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, 123.456, {}); Object.defineProperty(obj, 123.456, {});
return obj.hasOwnProperty("123.456"); assert(obj.hasOwnProperty("123.456"), 'obj.hasOwnProperty("123.456") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-28
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
a string (value is 1(following 19 zeros).1) a string (value is 1(following 19 zeros).1)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, 10000000000000000000.1, {}); Object.defineProperty(obj, 10000000000000000000.1, {});
return obj.hasOwnProperty("10000000000000000000"); assert(obj.hasOwnProperty("10000000000000000000"), 'obj.hasOwnProperty("10000000000000000000") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-29
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
a string (value is 1(following 20 zeros).1) a string (value is 1(following 20 zeros).1)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, 100000000000000000000.1, {}); Object.defineProperty(obj, 100000000000000000000.1, {});
return obj.hasOwnProperty("100000000000000000000"); assert(obj.hasOwnProperty("100000000000000000000"), 'obj.hasOwnProperty("100000000000000000000") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-3
description: > description: >
Object.defineProperty - argument 'P' is a boolean whose value is Object.defineProperty - argument 'P' is a boolean whose value is
false false
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, false, {}); Object.defineProperty(obj, false, {});
return obj.hasOwnProperty("false"); assert(obj.hasOwnProperty("false"), 'obj.hasOwnProperty("false") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-30
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
a string (value is 1(following 21 zeros).1) a string (value is 1(following 21 zeros).1)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, 1000000000000000000000.1, {}); Object.defineProperty(obj, 1000000000000000000000.1, {});
return obj.hasOwnProperty("1e+21"); assert(obj.hasOwnProperty("1e+21"), 'obj.hasOwnProperty("1e+21") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-31
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
a string (value is 1(following 22 zeros).1) a string (value is 1(following 22 zeros).1)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, 10000000000000000000000.1, {}); Object.defineProperty(obj, 10000000000000000000000.1, {});
return obj.hasOwnProperty("1e+22"); assert(obj.hasOwnProperty("1e+22"), 'obj.hasOwnProperty("1e+22") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-32
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
a string (value is 123.1234567) a string (value is 123.1234567)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, 123.1234567, {}); Object.defineProperty(obj, 123.1234567, {});
return obj.hasOwnProperty("123.1234567"); assert(obj.hasOwnProperty("123.1234567"), 'obj.hasOwnProperty("123.1234567") !== true');
}
runTestCase(testcase);

View File

@ -4,14 +4,9 @@
/*--- /*---
es5id: 15.2.3.6-2-33 es5id: 15.2.3.6-2-33
description: Object.defineProperty - argument 'P' is applied to an empty string description: Object.defineProperty - argument 'P' is applied to an empty string
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, "", {}); Object.defineProperty(obj, "", {});
return obj.hasOwnProperty(""); assert(obj.hasOwnProperty(""), 'obj.hasOwnProperty("") !== true');
}
runTestCase(testcase);

View File

@ -4,14 +4,9 @@
/*--- /*---
es5id: 15.2.3.6-2-34 es5id: 15.2.3.6-2-34
description: Object.defineProperty - argument 'P' is applied to string 'AB \cd' description: Object.defineProperty - argument 'P' is applied to string 'AB \cd'
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, "AB\n\\cd", {}); Object.defineProperty(obj, "AB\n\\cd", {});
return obj.hasOwnProperty("AB\n\\cd"); assert(obj.hasOwnProperty("AB\n\\cd"), 'obj.hasOwnProperty("AB\n\\cd") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-35
description: > description: >
Object.defineProperty - argument 'P' is applied to string Object.defineProperty - argument 'P' is applied to string
'undefined' 'undefined'
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, "undefined", {}); Object.defineProperty(obj, "undefined", {});
return obj.hasOwnProperty("undefined"); assert(obj.hasOwnProperty("undefined"), 'obj.hasOwnProperty("undefined") !== true');
}
runTestCase(testcase);

View File

@ -4,14 +4,9 @@
/*--- /*---
es5id: 15.2.3.6-2-36 es5id: 15.2.3.6-2-36
description: Object.defineProperty - argument 'P' is applied to string 'null' description: Object.defineProperty - argument 'P' is applied to string 'null'
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, "null", {}); Object.defineProperty(obj, "null", {});
return obj.hasOwnProperty("null"); assert(obj.hasOwnProperty("null"), 'obj.hasOwnProperty("null") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-37
description: > description: >
Object.defineProperty - argument 'P' is applied to string Object.defineProperty - argument 'P' is applied to string
'123αβπcd' '123αβπcd'
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, "123αβπcd", {}); Object.defineProperty(obj, "123αβπcd", {});
return obj.hasOwnProperty("123αβπcd"); assert(obj.hasOwnProperty("123αβπcd"), 'obj.hasOwnProperty("123αβπcd") !== true');
}
runTestCase(testcase);

View File

@ -4,14 +4,9 @@
/*--- /*---
es5id: 15.2.3.6-2-38 es5id: 15.2.3.6-2-38
description: Object.defineProperty - argument 'P' is applied to string '1' description: Object.defineProperty - argument 'P' is applied to string '1'
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, "1", {}); Object.defineProperty(obj, "1", {});
return obj.hasOwnProperty("1"); assert(obj.hasOwnProperty("1"), 'obj.hasOwnProperty("1") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-39
description: > description: >
Object.defineProperty - argument 'P' is an array that converts to Object.defineProperty - argument 'P' is an array that converts to
a string a string
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, [1, 2], {}); Object.defineProperty(obj, [1, 2], {});
return obj.hasOwnProperty("1,2"); assert(obj.hasOwnProperty("1,2"), 'obj.hasOwnProperty("1,2") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-4
description: > description: >
Object.defineProperty - argument 'P' is a boolean whose value is Object.defineProperty - argument 'P' is a boolean whose value is
true true
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, true, {}); Object.defineProperty(obj, true, {});
return obj.hasOwnProperty("true"); assert(obj.hasOwnProperty("true"), 'obj.hasOwnProperty("true") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-40
description: > description: >
Object.defineProperty - argument 'P' is a String Object that Object.defineProperty - argument 'P' is a String Object that
converts to a string converts to a string
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, new String("Hello"), {}); Object.defineProperty(obj, new String("Hello"), {});
return obj.hasOwnProperty("Hello"); assert(obj.hasOwnProperty("Hello"), 'obj.hasOwnProperty("Hello") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-41
description: > description: >
Object.defineProperty - argument 'P' is a Boolean Object that Object.defineProperty - argument 'P' is a Boolean Object that
converts to a string converts to a string
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, new Boolean(false), {}); Object.defineProperty(obj, new Boolean(false), {});
return obj.hasOwnProperty("false"); assert(obj.hasOwnProperty("false"), 'obj.hasOwnProperty("false") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-42
description: > description: >
Object.defineProperty - argument 'P' is a Number Object that Object.defineProperty - argument 'P' is a Number Object that
converts to a string converts to a string
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, new Number(123), {}); Object.defineProperty(obj, new Number(123), {});
return obj.hasOwnProperty("123"); assert(obj.hasOwnProperty("123"), 'obj.hasOwnProperty("123") !== true');
}
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-2-43
description: > description: >
Object.defineProperty - argument 'P' is an object that has an own Object.defineProperty - argument 'P' is an object that has an own
toString method toString method
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
var ownProp = { var ownProp = {
@ -20,7 +18,4 @@ function testcase() {
Object.defineProperty(obj, ownProp, {}); Object.defineProperty(obj, ownProp, {});
return obj.hasOwnProperty("abc"); assert(obj.hasOwnProperty("abc"), 'obj.hasOwnProperty("abc") !== true');
}
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-2-44
description: > description: >
Object.defineProperty - argument 'P' is an object that has an own Object.defineProperty - argument 'P' is an object that has an own
valueOf method valueOf method
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
var ownProp = { var ownProp = {
@ -21,7 +19,4 @@ function testcase() {
Object.defineProperty(obj, ownProp, {}); Object.defineProperty(obj, ownProp, {});
return obj.hasOwnProperty("abc"); assert(obj.hasOwnProperty("abc"), 'obj.hasOwnProperty("abc") !== true');
}
runTestCase(testcase);

View File

@ -7,10 +7,8 @@ description: >
Object.defineProperty - argument 'P' is an object whose toString Object.defineProperty - argument 'P' is an object whose toString
method returns an object and whose valueOf method returns a method returns an object and whose valueOf method returns a
primitive value primitive value
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
var toStringAccessed = false; var toStringAccessed = false;
var valueOfAccessed = false; var valueOfAccessed = false;
@ -28,6 +26,6 @@ function testcase() {
Object.defineProperty(obj, ownProp, {}); Object.defineProperty(obj, ownProp, {});
return obj.hasOwnProperty("abc") && valueOfAccessed && toStringAccessed; assert(obj.hasOwnProperty("abc"), 'obj.hasOwnProperty("abc") !== true');
} assert(valueOfAccessed, 'valueOfAccessed !== true');
runTestCase(testcase); assert(toStringAccessed, 'toStringAccessed !== true');

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-2-46
description: > description: >
Object.defineProperty - argument 'P' is an object that has an own Object.defineProperty - argument 'P' is an object that has an own
toString and valueOf method toString and valueOf method
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
var toStringAccessed = false; var toStringAccessed = false;
var valueOfAccessed = false; var valueOfAccessed = false;
@ -26,7 +24,6 @@ function testcase() {
}; };
Object.defineProperty(obj, ownProp, {}); Object.defineProperty(obj, ownProp, {});
return obj.hasOwnProperty("abc") && !valueOfAccessed && toStringAccessed; assert(obj.hasOwnProperty("abc"), 'obj.hasOwnProperty("abc") !== true');
assert.sameValue(valueOfAccessed, false, 'valueOfAccessed');
} assert(toStringAccessed, 'toStringAccessed !== true');
runTestCase(testcase);

View File

@ -7,10 +7,8 @@ description: >
Object.defineProperty - an inherited toString method is invoked Object.defineProperty - an inherited toString method is invoked
when 'P' is an object with an own valueOf and an inherited when 'P' is an object with an own valueOf and an inherited
toString methods toString methods
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
var toStringAccessed = false; var toStringAccessed = false;
var valueOfAccessed = false; var valueOfAccessed = false;
@ -33,6 +31,6 @@ function testcase() {
Object.defineProperty(obj, child, {}); Object.defineProperty(obj, child, {});
return obj.hasOwnProperty("test") && !valueOfAccessed && toStringAccessed; assert(obj.hasOwnProperty("test"), 'obj.hasOwnProperty("test") !== true');
} assert.sameValue(valueOfAccessed, false, 'valueOfAccessed');
runTestCase(testcase); assert(toStringAccessed, 'toStringAccessed !== true');

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-5
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
a string (value is NaN) a string (value is NaN)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, NaN, {}); Object.defineProperty(obj, NaN, {});
return obj.hasOwnProperty("NaN"); assert(obj.hasOwnProperty("NaN"), 'obj.hasOwnProperty("NaN") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-6
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
a string (value is 0) a string (value is 0)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, 0, {}); Object.defineProperty(obj, 0, {});
return obj.hasOwnProperty("0"); assert(obj.hasOwnProperty("0"), 'obj.hasOwnProperty("0") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-7
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
a string (value is +0) a string (value is +0)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, +0, {}); Object.defineProperty(obj, +0, {});
return obj.hasOwnProperty("0"); assert(obj.hasOwnProperty("0"), 'obj.hasOwnProperty("0") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-8
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
a string (value is -0) a string (value is -0)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, -0, {}); Object.defineProperty(obj, -0, {});
return obj.hasOwnProperty("0"); assert(obj.hasOwnProperty("0"), 'obj.hasOwnProperty("0") !== true');
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.6-2-9
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
a string (value is a positive number) a string (value is a positive number)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, 30, {}); Object.defineProperty(obj, 30, {});
return obj.hasOwnProperty("30"); assert(obj.hasOwnProperty("30"), 'obj.hasOwnProperty("30") !== true');
}
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-3-101
description: > description: >
Object.defineProperty - 'configurable' property in 'Attributes' is Object.defineProperty - 'configurable' property in 'Attributes' is
true (8.10.5 step 4.b) true (8.10.5 step 4.b)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, "property", { configurable: true }); Object.defineProperty(obj, "property", { configurable: true });
@ -20,6 +18,5 @@ function testcase() {
var afterDeleted = obj.hasOwnProperty("property"); var afterDeleted = obj.hasOwnProperty("property");
return beforeDeleted === true && afterDeleted === false; assert.sameValue(beforeDeleted, true, 'beforeDeleted');
} assert.sameValue(afterDeleted, false, 'afterDeleted');
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-3-107
description: > description: >
Object.defineProperty - 'configurable' property in 'Attributes' is Object.defineProperty - 'configurable' property in 'Attributes' is
a positive number (8.10.5 step 4.b) a positive number (8.10.5 step 4.b)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, "property", { configurable: 12345 }); Object.defineProperty(obj, "property", { configurable: 12345 });
@ -20,6 +18,5 @@ function testcase() {
var afterDeleted = obj.hasOwnProperty("property"); var afterDeleted = obj.hasOwnProperty("property");
return beforeDeleted === true && afterDeleted === false; assert.sameValue(beforeDeleted, true, 'beforeDeleted');
} assert.sameValue(afterDeleted, false, 'afterDeleted');
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-3-108
description: > description: >
Object.defineProperty - 'configurable' property in 'Attributes' is Object.defineProperty - 'configurable' property in 'Attributes' is
a negative number (8.10.5 step 4.b) a negative number (8.10.5 step 4.b)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, "property", { configurable: -12345 }); Object.defineProperty(obj, "property", { configurable: -12345 });
@ -20,6 +18,5 @@ function testcase() {
var afterDeleted = obj.hasOwnProperty("property"); var afterDeleted = obj.hasOwnProperty("property");
return beforeDeleted === true && afterDeleted === false; assert.sameValue(beforeDeleted, true, 'beforeDeleted');
} assert.sameValue(afterDeleted, false, 'afterDeleted');
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-3-110
description: > description: >
Object.defineProperty - 'configurable' property in 'Attributes' is Object.defineProperty - 'configurable' property in 'Attributes' is
a non-empty string (8.10.5 step 4.b) a non-empty string (8.10.5 step 4.b)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, "property", { configurable: " " }); Object.defineProperty(obj, "property", { configurable: " " });
@ -20,6 +18,5 @@ function testcase() {
var afterDeleted = obj.hasOwnProperty("property"); var afterDeleted = obj.hasOwnProperty("property");
return beforeDeleted === true && afterDeleted === false; assert.sameValue(beforeDeleted, true, 'beforeDeleted');
} assert.sameValue(afterDeleted, false, 'afterDeleted');
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-3-111
description: > description: >
Object.defineProperty - 'configurable' property in 'Attributes' is Object.defineProperty - 'configurable' property in 'Attributes' is
a Function object (8.10.5 step 4.b) a Function object (8.10.5 step 4.b)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, "property", { Object.defineProperty(obj, "property", {
@ -22,6 +20,5 @@ function testcase() {
var afterDeleted = obj.hasOwnProperty("property"); var afterDeleted = obj.hasOwnProperty("property");
return beforeDeleted === true && afterDeleted === false; assert.sameValue(beforeDeleted, true, 'beforeDeleted');
} assert.sameValue(afterDeleted, false, 'afterDeleted');
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-3-112
description: > description: >
Object.defineProperty - 'configurable' property in 'Attributes' is Object.defineProperty - 'configurable' property in 'Attributes' is
an Array object (8.10.5 step 4.b) an Array object (8.10.5 step 4.b)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, "property", { configurable: [1, 2, 3] }); Object.defineProperty(obj, "property", { configurable: [1, 2, 3] });
@ -20,6 +18,5 @@ function testcase() {
var afterDeleted = obj.hasOwnProperty("property"); var afterDeleted = obj.hasOwnProperty("property");
return beforeDeleted === true && afterDeleted === false; assert.sameValue(beforeDeleted, true, 'beforeDeleted');
} assert.sameValue(afterDeleted, false, 'afterDeleted');
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-3-113
description: > description: >
Object.defineProperty - 'configurable' property in 'Attributes' is Object.defineProperty - 'configurable' property in 'Attributes' is
a String object (8.10.5 step 4.b) a String object (8.10.5 step 4.b)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, "property", { configurable: new String("bbq") }); Object.defineProperty(obj, "property", { configurable: new String("bbq") });
@ -20,6 +18,5 @@ function testcase() {
var afterDeleted = obj.hasOwnProperty("property"); var afterDeleted = obj.hasOwnProperty("property");
return beforeDeleted === true && afterDeleted === false; assert.sameValue(beforeDeleted, true, 'beforeDeleted');
} assert.sameValue(afterDeleted, false, 'afterDeleted');
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-3-114
description: > description: >
Object.defineProperty - 'configurable' property in 'Attributes' is Object.defineProperty - 'configurable' property in 'Attributes' is
a Boolean object (8.10.5 step 4.b) a Boolean object (8.10.5 step 4.b)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, "property", { configurable: new Boolean(true) }); Object.defineProperty(obj, "property", { configurable: new Boolean(true) });
@ -20,6 +18,5 @@ function testcase() {
var afterDeleted = obj.hasOwnProperty("property"); var afterDeleted = obj.hasOwnProperty("property");
return beforeDeleted === true && afterDeleted === false; assert.sameValue(beforeDeleted, true, 'beforeDeleted');
} assert.sameValue(afterDeleted, false, 'afterDeleted');
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-3-115
description: > description: >
Object.defineProperty - 'configurable' property in 'Attributes' is Object.defineProperty - 'configurable' property in 'Attributes' is
a Number object (8.10.5 step 4.b) a Number object (8.10.5 step 4.b)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, "property", { configurable: new Number(0) }); Object.defineProperty(obj, "property", { configurable: new Number(0) });
@ -20,6 +18,5 @@ function testcase() {
var afterDeleted = obj.hasOwnProperty("property"); var afterDeleted = obj.hasOwnProperty("property");
return beforeDeleted === true && afterDeleted === false; assert.sameValue(beforeDeleted, true, 'beforeDeleted');
} assert.sameValue(afterDeleted, false, 'afterDeleted');
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-3-116
description: > description: >
Object.defineProperty - 'configurable' property in 'Attributes' is Object.defineProperty - 'configurable' property in 'Attributes' is
the Math object (8.10.5 step 4.b) the Math object (8.10.5 step 4.b)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, "property", { configurable: Math }); Object.defineProperty(obj, "property", { configurable: Math });
@ -20,6 +18,5 @@ function testcase() {
var afterDeleted = obj.hasOwnProperty("property"); var afterDeleted = obj.hasOwnProperty("property");
return beforeDeleted === true && afterDeleted === false; assert.sameValue(beforeDeleted, true, 'beforeDeleted');
} assert.sameValue(afterDeleted, false, 'afterDeleted');
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-3-117
description: > description: >
Object.defineProperty - 'configurable' property in 'Attributes' is Object.defineProperty - 'configurable' property in 'Attributes' is
a Date object (8.10.5 step 4.b) a Date object (8.10.5 step 4.b)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, "property", { configurable: new Date() }); Object.defineProperty(obj, "property", { configurable: new Date() });
@ -20,6 +18,5 @@ function testcase() {
var afterDeleted = obj.hasOwnProperty("property"); var afterDeleted = obj.hasOwnProperty("property");
return beforeDeleted === true && afterDeleted === false; assert.sameValue(beforeDeleted, true, 'beforeDeleted');
} assert.sameValue(afterDeleted, false, 'afterDeleted');
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-3-118
description: > description: >
Object.defineProperty - 'configurable' property in 'Attributes' is Object.defineProperty - 'configurable' property in 'Attributes' is
a RegExp object (8.10.5 step 4.b) a RegExp object (8.10.5 step 4.b)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
var attr = { var attr = {
@ -24,6 +22,5 @@ function testcase() {
var afterDeleted = obj.hasOwnProperty("property"); var afterDeleted = obj.hasOwnProperty("property");
return beforeDeleted === true && afterDeleted === false; assert.sameValue(beforeDeleted, true, 'beforeDeleted');
} assert.sameValue(afterDeleted, false, 'afterDeleted');
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-3-119
description: > description: >
Object.defineProperty - 'configurable' property in 'Attributes' is Object.defineProperty - 'configurable' property in 'Attributes' is
the JSON object (8.10.5 step 4.b) the JSON object (8.10.5 step 4.b)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
var attr = { var attr = {
@ -24,6 +22,5 @@ function testcase() {
var afterDeleted = obj.hasOwnProperty("property"); var afterDeleted = obj.hasOwnProperty("property");
return beforeDeleted === true && afterDeleted === false; assert.sameValue(beforeDeleted, true, 'beforeDeleted');
} assert.sameValue(afterDeleted, false, 'afterDeleted');
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-3-120
description: > description: >
Object.defineProperty - 'configurable' property in 'Attributes' is Object.defineProperty - 'configurable' property in 'Attributes' is
a Error object (8.10.5 step 4.b) a Error object (8.10.5 step 4.b)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
var attr = { var attr = {
@ -24,6 +22,5 @@ function testcase() {
var afterDeleted = obj.hasOwnProperty("property"); var afterDeleted = obj.hasOwnProperty("property");
return beforeDeleted === true && afterDeleted === false; assert.sameValue(beforeDeleted, true, 'beforeDeleted');
} assert.sameValue(afterDeleted, false, 'afterDeleted');
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-3-121
description: > description: >
Object.defineProperty - 'configurable' property in 'Attributes' is Object.defineProperty - 'configurable' property in 'Attributes' is
the Argument object (8.10.5 step 4.b) the Argument object (8.10.5 step 4.b)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
var argObj = (function () { return arguments; })(1, true, "a"); var argObj = (function () { return arguments; })(1, true, "a");
@ -26,6 +24,5 @@ function testcase() {
var afterDeleted = obj.hasOwnProperty("property"); var afterDeleted = obj.hasOwnProperty("property");
return beforeDeleted === true && afterDeleted === false; assert.sameValue(beforeDeleted, true, 'beforeDeleted');
} assert.sameValue(afterDeleted, false, 'afterDeleted');
runTestCase(testcase);

View File

@ -6,12 +6,9 @@ es5id: 15.2.3.6-3-123
description: > description: >
Object.defineProperty - 'configurable' property in 'Attributes' is Object.defineProperty - 'configurable' property in 'Attributes' is
the global object (8.10.5 step 4.b) the global object (8.10.5 step 4.b)
includes: includes: [fnGlobalObject.js]
- runTestCase.js
- fnGlobalObject.js
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
var attr = { var attr = {
@ -26,6 +23,5 @@ function testcase() {
var afterDeleted = obj.hasOwnProperty("property"); var afterDeleted = obj.hasOwnProperty("property");
return beforeDeleted === true && afterDeleted === false; assert.sameValue(beforeDeleted, true, 'beforeDeleted');
} assert.sameValue(afterDeleted, false, 'afterDeleted');
runTestCase(testcase);

View File

@ -7,10 +7,8 @@ description: >
Object.defineProperty - 'configurable' property in 'Attributes' is Object.defineProperty - 'configurable' property in 'Attributes' is
treated as true when it is a string (value is 'false') (8.10.5 treated as true when it is a string (value is 'false') (8.10.5
step 4.b) step 4.b)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
var attr = { var attr = {
@ -25,6 +23,5 @@ function testcase() {
var afterDeleted = obj.hasOwnProperty("property"); var afterDeleted = obj.hasOwnProperty("property");
return beforeDeleted === true && afterDeleted === false; assert.sameValue(beforeDeleted, true, 'beforeDeleted');
} assert.sameValue(afterDeleted, false, 'afterDeleted');
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-3-125
description: > description: >
Object.defineProperty - 'configurable' property in 'Attributes' is Object.defineProperty - 'configurable' property in 'Attributes' is
treated as true when it is new Boolean(false) (8.10.5 step 4.b) treated as true when it is new Boolean(false) (8.10.5 step 4.b)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
var attr = { var attr = {
@ -24,6 +22,5 @@ function testcase() {
var afterDeleted = obj.hasOwnProperty("property"); var afterDeleted = obj.hasOwnProperty("property");
return beforeDeleted === true && afterDeleted === false; assert.sameValue(beforeDeleted, true, 'beforeDeleted');
} assert.sameValue(afterDeleted, false, 'afterDeleted');
runTestCase(testcase);

View File

@ -6,16 +6,12 @@ es5id: 15.2.3.6-3-126
description: > description: >
Object.defineProperty - 'value' property in 'Attributes' is Object.defineProperty - 'value' property in 'Attributes' is
present (8.10.5 step 5) present (8.10.5 step 5)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
var attr = { value: 100 }; var attr = { value: 100 };
Object.defineProperty(obj, "property", attr); Object.defineProperty(obj, "property", attr);
return obj.property === 100; assert.sameValue(obj.property, 100, 'obj.property');
}
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-3-127
description: > description: >
Object.defineProperty - 'value' property in 'Attributes' is not Object.defineProperty - 'value' property in 'Attributes' is not
present (8.10.5 step 5) present (8.10.5 step 5)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = { }; var obj = { };
var attr = { var attr = {
@ -18,6 +16,5 @@ function testcase() {
Object.defineProperty(obj, "property", attr); Object.defineProperty(obj, "property", attr);
return obj.hasOwnProperty("property") && typeof (obj.property) === "undefined"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
} assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)');
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-3-129
description: > description: >
Object.defineProperty - 'value' property in 'Attributes' is an Object.defineProperty - 'value' property in 'Attributes' is an
inherited data property (8.10.5 step 5.a) inherited data property (8.10.5 step 5.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = { }; var obj = { };
var proto = { var proto = {
@ -23,6 +21,4 @@ function testcase() {
Object.defineProperty(obj, "property", child); Object.defineProperty(obj, "property", child);
return obj.property === "inheritedDataProperty"; assert.sameValue(obj.property, "inheritedDataProperty", 'obj.property');
}
runTestCase(testcase);

View File

@ -7,10 +7,8 @@ description: >
Object.defineProperty - 'value' property in 'Attributes' is own Object.defineProperty - 'value' property in 'Attributes' is own
data property that overrides an inherited data property (8.10.5 data property that overrides an inherited data property (8.10.5
step 5.a) step 5.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
var proto = { value: "inheritedDataProperty" }; var proto = { value: "inheritedDataProperty" };
@ -24,6 +22,4 @@ function testcase() {
Object.defineProperty(obj, "property", child); Object.defineProperty(obj, "property", child);
return obj.property === "ownDataProperty"; assert.sameValue(obj.property, "ownDataProperty", 'obj.property');
}
runTestCase(testcase);

View File

@ -7,10 +7,8 @@ description: >
Object.defineProperty - 'value' property in 'Attributes' is own Object.defineProperty - 'value' property in 'Attributes' is own
data property that overrides an inherited accessor property data property that overrides an inherited accessor property
(8.10.5 step 5.a) (8.10.5 step 5.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = { }; var obj = { };
var proto = {}; var proto = {};
@ -31,6 +29,4 @@ function testcase() {
Object.defineProperty(obj, "property", child); Object.defineProperty(obj, "property", child);
return obj.property === "ownDataProperty"; assert.sameValue(obj.property, "ownDataProperty", 'obj.property');
}
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-3-132
description: > description: >
Object.defineProperty - 'value' property in 'Attributes' is own Object.defineProperty - 'value' property in 'Attributes' is own
accessor property (8.10.5 step 5.a) accessor property (8.10.5 step 5.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = { }; var obj = { };
var attr = {}; var attr = {};
@ -21,6 +19,4 @@ function testcase() {
Object.defineProperty(obj, "property", attr); Object.defineProperty(obj, "property", attr);
return obj.property === "ownAccessorProperty"; assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property');
}
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-3-133
description: > description: >
Object.defineProperty - 'value' property in 'Attributes' is an Object.defineProperty - 'value' property in 'Attributes' is an
inherited accessor property (8.10.5 step 5.a) inherited accessor property (8.10.5 step 5.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = { }; var obj = { };
var proto = {}; var proto = {};
@ -26,6 +24,4 @@ function testcase() {
Object.defineProperty(obj, "property", child); Object.defineProperty(obj, "property", child);
return obj.property === "inheritedAccessorProperty"; assert.sameValue(obj.property, "inheritedAccessorProperty", 'obj.property');
}
runTestCase(testcase);

View File

@ -7,10 +7,8 @@ description: >
Object.defineProperty - 'value' property in 'Attributes' is own Object.defineProperty - 'value' property in 'Attributes' is own
accessor property that overrides an inherited data property accessor property that overrides an inherited data property
(8.10.5 step 5.a) (8.10.5 step 5.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
var proto = { var proto = {
@ -29,6 +27,4 @@ function testcase() {
Object.defineProperty(obj, "property", child); Object.defineProperty(obj, "property", child);
return obj.property === "ownAccessorProperty"; assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property');
}
runTestCase(testcase);

View File

@ -7,10 +7,8 @@ description: >
Object.defineProperty - 'value' property in 'Attributes' is own Object.defineProperty - 'value' property in 'Attributes' is own
accessor property that overrides an inherited accessor property accessor property that overrides an inherited accessor property
(8.10.5 step 5.a) (8.10.5 step 5.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
var proto = {}; var proto = {};
@ -32,6 +30,4 @@ function testcase() {
Object.defineProperty(obj, "property", child); Object.defineProperty(obj, "property", child);
return obj.property === "ownAccessorProperty"; assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property');
}
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-3-136
description: > description: >
Object.defineProperty - 'value' property in 'Attributes' is own Object.defineProperty - 'value' property in 'Attributes' is own
accessor property without a get function (8.10.5 step 5.a) accessor property without a get function (8.10.5 step 5.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
var attr = {}; var attr = {};
@ -19,6 +17,5 @@ function testcase() {
Object.defineProperty(obj, "property", attr); Object.defineProperty(obj, "property", attr);
return obj.hasOwnProperty("property") && typeof (obj.property) === "undefined"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
} assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)');
runTestCase(testcase);

View File

@ -7,10 +7,8 @@ description: >
Object.defineProperty - 'value' property in 'Attributes' is own Object.defineProperty - 'value' property in 'Attributes' is own
accessor property(without a get function) that overrides an accessor property(without a get function) that overrides an
inherited accessor property (8.10.5 step 5.a) inherited accessor property (8.10.5 step 5.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = { }; var obj = { };
var proto = {}; var proto = {};
@ -30,6 +28,5 @@ function testcase() {
Object.defineProperty(obj, "property", child); Object.defineProperty(obj, "property", child);
return obj.hasOwnProperty("property") && typeof (obj.property) === "undefined"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
} assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)');
runTestCase(testcase);

View File

@ -7,10 +7,8 @@ description: >
Object.defineProperty - 'value' property in 'Attributes' is an Object.defineProperty - 'value' property in 'Attributes' is an
inherited accessor property without a get function (8.10.5 step inherited accessor property without a get function (8.10.5 step
5.a) 5.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = { property : 120 }; var obj = { property : 120 };
var proto = {}; var proto = {};
@ -25,6 +23,5 @@ function testcase() {
Object.defineProperty(obj, "property", child); Object.defineProperty(obj, "property", child);
return obj.hasOwnProperty("property") && typeof (obj.property) === "undefined"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
} assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)');
runTestCase(testcase);

View File

@ -7,10 +7,8 @@ description: >
Object.defineProperty - 'Attributes' is a Function object which Object.defineProperty - 'Attributes' is a Function object which
implements its own [[Get]] method to access the 'value' property implements its own [[Get]] method to access the 'value' property
(8.10.5 step 5.a) (8.10.5 step 5.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = { }; var obj = { };
var funObj = function (a, b) { var funObj = function (a, b) {
@ -21,6 +19,4 @@ function testcase() {
Object.defineProperty(obj, "property", funObj); Object.defineProperty(obj, "property", funObj);
return obj.property === "Function"; assert.sameValue(obj.property, "Function", 'obj.property');
}
runTestCase(testcase);

View File

@ -7,10 +7,8 @@ description: >
Object.defineProperty - 'Attributes' is an Array object that uses Object.defineProperty - 'Attributes' is an Array object that uses
Object's [[Get]] method to access the 'value' property (8.10.5 Object's [[Get]] method to access the 'value' property (8.10.5
step 5.a) step 5.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = { }; var obj = { };
var arrObj = [1, 2, 3]; var arrObj = [1, 2, 3];
@ -19,6 +17,4 @@ function testcase() {
Object.defineProperty(obj, "property", arrObj); Object.defineProperty(obj, "property", arrObj);
return obj.property === "Array"; assert.sameValue(obj.property, "Array", 'obj.property');
}
runTestCase(testcase);

View File

@ -7,10 +7,8 @@ description: >
Object.defineProperty - 'Attributes' is a String object that uses Object.defineProperty - 'Attributes' is a String object that uses
Object's [[Get]] method to access the 'value' property (8.10.5 Object's [[Get]] method to access the 'value' property (8.10.5
step 5.a) step 5.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = { }; var obj = { };
var strObj = new String("abc"); var strObj = new String("abc");
@ -19,6 +17,4 @@ function testcase() {
Object.defineProperty(obj, "property", strObj); Object.defineProperty(obj, "property", strObj);
return obj.property === "String"; assert.sameValue(obj.property, "String", 'obj.property');
}
runTestCase(testcase);

View File

@ -7,10 +7,8 @@ description: >
Object.defineProperty - 'Attributes' is a Boolean object that uses Object.defineProperty - 'Attributes' is a Boolean object that uses
Object's [[Get]] method to access the 'value' property (8.10.5 Object's [[Get]] method to access the 'value' property (8.10.5
step 5.a) step 5.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = { }; var obj = { };
var boolObj = new Boolean(true); var boolObj = new Boolean(true);
@ -19,6 +17,4 @@ function testcase() {
Object.defineProperty(obj, "property", boolObj); Object.defineProperty(obj, "property", boolObj);
return obj.property === "Boolean"; assert.sameValue(obj.property, "Boolean", 'obj.property');
}
runTestCase(testcase);

View File

@ -7,10 +7,8 @@ description: >
Object.defineProperty - 'Attributes' is a Number object that uses Object.defineProperty - 'Attributes' is a Number object that uses
Object's [[Get]] method to access the 'value' property (8.10.5 Object's [[Get]] method to access the 'value' property (8.10.5
step 5.a) step 5.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = { }; var obj = { };
var numObj = new Number(-2); var numObj = new Number(-2);
@ -19,6 +17,4 @@ function testcase() {
Object.defineProperty(obj, "property", numObj); Object.defineProperty(obj, "property", numObj);
return obj.property === "Number"; assert.sameValue(obj.property, "Number", 'obj.property');
}
runTestCase(testcase);

View File

@ -7,10 +7,8 @@ description: >
Object.defineProperty - 'Attributes' is a Date object that uses Object.defineProperty - 'Attributes' is a Date object that uses
Object's [[Get]] method to access the 'value' property (8.10.5 Object's [[Get]] method to access the 'value' property (8.10.5
step 5.a) step 5.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = { }; var obj = { };
var dateObj = new Date(); var dateObj = new Date();
@ -19,6 +17,4 @@ function testcase() {
Object.defineProperty(obj, "property", dateObj); Object.defineProperty(obj, "property", dateObj);
return obj.property === "Date"; assert.sameValue(obj.property, "Date", 'obj.property');
}
runTestCase(testcase);

View File

@ -7,10 +7,8 @@ description: >
Object.defineProperty - 'Attributes' is a RegExp object that uses Object.defineProperty - 'Attributes' is a RegExp object that uses
Object's [[Get]] method to access the 'value' property (8.10.5 Object's [[Get]] method to access the 'value' property (8.10.5
step 5.a) step 5.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = { }; var obj = { };
var regObj = new RegExp(); var regObj = new RegExp();
@ -19,6 +17,4 @@ function testcase() {
Object.defineProperty(obj, "property", regObj); Object.defineProperty(obj, "property", regObj);
return obj.property === "RegExp"; assert.sameValue(obj.property, "RegExp", 'obj.property');
}
runTestCase(testcase);

View File

@ -7,10 +7,8 @@ description: >
Object.defineProperty - 'Attributes' is an Error object that uses Object.defineProperty - 'Attributes' is an Error object that uses
Object's [[Get]] method to access the 'value' property (8.10.5 Object's [[Get]] method to access the 'value' property (8.10.5
step 5.a) step 5.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
var errObj = new Error(); var errObj = new Error();
@ -19,6 +17,4 @@ function testcase() {
Object.defineProperty(obj, "property", errObj); Object.defineProperty(obj, "property", errObj);
return obj.property === "Error"; assert.sameValue(obj.property, "Error", 'obj.property');
}
runTestCase(testcase);

View File

@ -7,10 +7,8 @@ description: >
Object.defineProperty - 'Attributes' is an Arguments object which Object.defineProperty - 'Attributes' is an Arguments object which
implements its own [[Get]] method to access the 'value' property implements its own [[Get]] method to access the 'value' property
(8.10.5 step 5.a) (8.10.5 step 5.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
var argObj = (function () { return arguments; })(); var argObj = (function () { return arguments; })();
@ -19,6 +17,4 @@ function testcase() {
Object.defineProperty(obj, "property", argObj); Object.defineProperty(obj, "property", argObj);
return obj.property === "arguments"; assert.sameValue(obj.property, "arguments", 'obj.property');
}
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-3-154
description: > description: >
Object.defineProperty - 'writable' property in 'Attributes' is own Object.defineProperty - 'writable' property in 'Attributes' is own
data property (8.10.5 step 6.a) data property (8.10.5 step 6.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = { }; var obj = { };
var attr = { var attr = {
@ -24,6 +22,5 @@ function testcase() {
var afterWrite = (obj.property === "isWritable"); var afterWrite = (obj.property === "isWritable");
return beforeWrite === true && afterWrite === true; assert.sameValue(beforeWrite, true, 'beforeWrite');
} assert.sameValue(afterWrite, true, 'afterWrite');
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-3-155
description: > description: >
Object.defineProperty - 'writable' property in 'Attributes' is an Object.defineProperty - 'writable' property in 'Attributes' is an
inherited data property (8.10.5 step 6.a) inherited data property (8.10.5 step 6.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = { }; var obj = { };
var proto = { var proto = {
@ -29,6 +27,5 @@ function testcase() {
var afterWrite = (obj.property === "isWritable"); var afterWrite = (obj.property === "isWritable");
return beforeWrite === true && afterWrite === true; assert.sameValue(beforeWrite, true, 'beforeWrite');
} assert.sameValue(afterWrite, true, 'afterWrite');
runTestCase(testcase);

View File

@ -7,10 +7,8 @@ description: >
Object.defineProperty - 'writable' property in 'Attributes' is own Object.defineProperty - 'writable' property in 'Attributes' is own
data property that overrides an inherited data property (8.10.5 data property that overrides an inherited data property (8.10.5
step 6.a) step 6.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = { }; var obj = { };
var proto = { var proto = {
@ -31,6 +29,5 @@ function testcase() {
var afterWrite = (obj.property === "isWritable"); var afterWrite = (obj.property === "isWritable");
return beforeWrite === true && afterWrite === true; assert.sameValue(beforeWrite, true, 'beforeWrite');
} assert.sameValue(afterWrite, true, 'afterWrite');
runTestCase(testcase);

View File

@ -7,10 +7,8 @@ description: >
Object.defineProperty - 'writable' property in 'Attributes' is own Object.defineProperty - 'writable' property in 'Attributes' is own
data property that overrides an inherited accessor property data property that overrides an inherited accessor property
(8.10.5 step 6.a) (8.10.5 step 6.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = { }; var obj = { };
var proto = { }; var proto = { };
@ -36,6 +34,5 @@ function testcase() {
var afterWrite = (obj.property === "isWritable"); var afterWrite = (obj.property === "isWritable");
return beforeWrite === true && afterWrite === true; assert.sameValue(beforeWrite, true, 'beforeWrite');
} assert.sameValue(afterWrite, true, 'afterWrite');
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-3-158
description: > description: >
Object.defineProperty - 'writable' property in 'Attributes' is own Object.defineProperty - 'writable' property in 'Attributes' is own
accessor property (8.10.5 step 6.a) accessor property (8.10.5 step 6.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = { }; var obj = { };
var attr = { }; var attr = { };
@ -27,6 +25,5 @@ function testcase() {
var afterWrite = (obj.property === "isWritable"); var afterWrite = (obj.property === "isWritable");
return beforeWrite === true && afterWrite === true; assert.sameValue(beforeWrite, true, 'beforeWrite');
} assert.sameValue(afterWrite, true, 'afterWrite');
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 15.2.3.6-3-159
description: > description: >
Object.defineProperty - 'writable' property in 'Attributes' is an Object.defineProperty - 'writable' property in 'Attributes' is an
inherited accessor property (8.10.5 step 6.a) inherited accessor property (8.10.5 step 6.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
var proto = {}; var proto = {};
@ -32,6 +30,5 @@ function testcase() {
var afterWrite = (obj.property === "isWritable"); var afterWrite = (obj.property === "isWritable");
return beforeWrite === true && afterWrite === true; assert.sameValue(beforeWrite, true, 'beforeWrite');
} assert.sameValue(afterWrite, true, 'afterWrite');
runTestCase(testcase);

View File

@ -7,10 +7,8 @@ description: >
Object.defineProperty - 'writable' property in 'Attributes' is own Object.defineProperty - 'writable' property in 'Attributes' is own
accessor property that overrides an inherited data property accessor property that overrides an inherited data property
(8.10.5 step 6.a) (8.10.5 step 6.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
var proto = { var proto = {
@ -35,6 +33,5 @@ function testcase() {
var afterWrite = (obj.property === "isWritable"); var afterWrite = (obj.property === "isWritable");
return beforeWrite === true && afterWrite === true; assert.sameValue(beforeWrite, true, 'beforeWrite');
} assert.sameValue(afterWrite, true, 'afterWrite');
runTestCase(testcase);

View File

@ -7,10 +7,8 @@ description: >
Object.defineProperty - 'writable' property in 'Attributes' is own Object.defineProperty - 'writable' property in 'Attributes' is own
accessor property that overrides an inherited accessor property accessor property that overrides an inherited accessor property
(8.10.5 step 6.a) (8.10.5 step 6.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
var proto = {}; var proto = {};
@ -38,6 +36,5 @@ function testcase() {
var afterWrite = (obj.property === "isWritable"); var afterWrite = (obj.property === "isWritable");
return beforeWrite === true && afterWrite === true; assert.sameValue(beforeWrite, true, 'beforeWrite');
} assert.sameValue(afterWrite, true, 'afterWrite');
runTestCase(testcase);

View File

@ -7,10 +7,8 @@ description: >
Object.defineProperty - 'Attributes' is a Function object which Object.defineProperty - 'Attributes' is a Function object which
implements its own [[Get]] method to access the 'writable' implements its own [[Get]] method to access the 'writable'
property (8.10.5 step 6.a) property (8.10.5 step 6.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
var funObj = function (a, b) { var funObj = function (a, b) {
@ -27,6 +25,5 @@ function testcase() {
var afterWrite = (obj.property === "isWritable"); var afterWrite = (obj.property === "isWritable");
return beforeWrite === true && afterWrite === true; assert.sameValue(beforeWrite, true, 'beforeWrite');
} assert.sameValue(afterWrite, true, 'afterWrite');
runTestCase(testcase);

View File

@ -7,10 +7,8 @@ description: >
Object.defineProperty - 'Attributes' is an Array object that uses Object.defineProperty - 'Attributes' is an Array object that uses
Object's [[Get]] method to access the 'writable' property (8.10.5 Object's [[Get]] method to access the 'writable' property (8.10.5
step 6.a) step 6.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = { }; var obj = { };
var arrObj = [1, 2, 3]; var arrObj = [1, 2, 3];
@ -25,6 +23,5 @@ function testcase() {
var afterWrite = (obj.property === "isWritable"); var afterWrite = (obj.property === "isWritable");
return beforeWrite === true && afterWrite === true; assert.sameValue(beforeWrite, true, 'beforeWrite');
} assert.sameValue(afterWrite, true, 'afterWrite');
runTestCase(testcase);

View File

@ -7,10 +7,8 @@ description: >
Object.defineProperty - 'Attributes' is a String object that uses Object.defineProperty - 'Attributes' is a String object that uses
Object's [[Get]] method to access the 'writable' property (8.10.5 Object's [[Get]] method to access the 'writable' property (8.10.5
step 6.a) step 6.a)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
var strObj = new String("abc"); var strObj = new String("abc");
@ -25,6 +23,5 @@ function testcase() {
var afterWrite = (obj.property === "isWritable"); var afterWrite = (obj.property === "isWritable");
return beforeWrite === true && afterWrite === true; assert.sameValue(beforeWrite, true, 'beforeWrite');
} assert.sameValue(afterWrite, true, 'afterWrite');
runTestCase(testcase);

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