diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-503.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-4-503.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-503.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-503.js index 75b213af1..76320b704 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-503.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-503.js @@ -7,10 +7,8 @@ description: > ES5 Attributes - [[Get]] attribute of accessor property ([[Get]] is a Function, [[Set]] is undefined, [[Enumerable]] is true, [[Configurable]] is false) is the expected function -includes: [runTestCase.js] ---*/ -function testcase() { var obj = {}; var getFunc = function () { @@ -27,6 +25,6 @@ function testcase() { var propertyDefineCorrect = obj.hasOwnProperty("prop"); var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - return propertyDefineCorrect && desc.get === getFunc && obj.prop === 1001; - } -runTestCase(testcase); +assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); +assert.sameValue(desc.get, getFunc, 'desc.get'); +assert.sameValue(obj.prop, 1001, 'obj.prop'); |