diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-515.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-4-515.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-515.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-515.js index 815fc4b40..b87f8abd5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-515.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-515.js @@ -7,10 +7,8 @@ description: > ES5 Attributes - property ([[Get]] is a Function, [[Set]] is undefined, [[Enumerable]] is false, [[Configurable]] is true) is deletable -includes: [runTestCase.js] ---*/ -function testcase() { var obj = {}; var getFunc = function () { @@ -29,6 +27,6 @@ function testcase() { delete obj.prop; - return propertyDefineCorrect && desc.configurable === true && !obj.hasOwnProperty("prop"); - } -runTestCase(testcase); +assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); +assert.sameValue(desc.configurable, true, 'desc.configurable'); +assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")'); |