diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-270.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-4-270.js | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-270.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-270.js index 7d1d3a42b..595a006f4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-270.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-270.js @@ -11,27 +11,26 @@ description: > named property, name is accessor property and 'desc' is accessor descriptor, test updating the [[Set]] attribute value of 'name' from undefined to function object (15.4.5.1 step 4.c) -includes: - - runTestCase.js - - accessorPropertyAttributesAreCorrect.js +includes: [propertyHelper.js] ---*/ -function testcase() { - var arrObj = []; +var arrObj = []; - function setFunc(value) { - arrObj.setVerifyHelpProp = value; - } +function setFunc(value) { + arrObj.setVerifyHelpProp = value; +} - Object.defineProperty(arrObj, "0", { - set: undefined, - configurable: true - }); +Object.defineProperty(arrObj, "0", { + set: undefined, + configurable: true +}); - Object.defineProperty(arrObj, "0", { - set: setFunc - }); - return accessorPropertyAttributesAreCorrect(arrObj, "0", undefined, setFunc, "setVerifyHelpProp", false, true); - } -runTestCase(testcase); +Object.defineProperty(arrObj, "0", { + set: setFunc +}); +verifyWritable(arrObj, "0", "setVerifyHelpProp"); + +verifyNotEnumerable(arrObj, "0"); + +verifyConfigurable(arrObj, "0"); |