diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-82-16.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-4-82-16.js | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-16.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-16.js index b4ed23d8c..a76d1ad43 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-16.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-16.js @@ -13,27 +13,28 @@ description: > 'desc' is a generic descriptor which contains [[Enumerable]] attribute as true and [[Configurable]] attribute as false, 'name' property is an index data property (8.12.9 step 8) -includes: - - runTestCase.js - - dataPropertyAttributesAreCorrect.js +includes: [propertyHelper.js] ---*/ -function testcase() { - - var obj = {}; - - Object.defineProperty(obj, "0", { - value: 1001, - writable: true, - enumerable: true, - configurable: true - }); - - Object.defineProperty(obj, "0", { - enumerable: true, - configurable: false - }); - - return dataPropertyAttributesAreCorrect(obj, "0", 1001, true, true, false); - } -runTestCase(testcase); + +var obj = {}; + +Object.defineProperty(obj, "0", { + value: 1001, + writable: true, + enumerable: true, + configurable: true +}); + +Object.defineProperty(obj, "0", { + enumerable: true, + configurable: false +}); + +verifyEqualTo(obj, "0", 1001); + +verifyWritable(obj, "0"); + +verifyEnumerable(obj, "0"); + +verifyNotConfigurable(obj, "0"); |