diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-70.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-4-70.js | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-70.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-70.js index fc8b770fb..d9ce9ebe5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-70.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-70.js @@ -9,18 +9,20 @@ es5id: 15.2.3.6-4-70 description: > Object.defineProperty - desc.value and name.value are two boolean values with different values (8.12.9 step 6) -includes: - - runTestCase.js - - dataPropertyAttributesAreCorrect.js +includes: [propertyHelper.js] ---*/ -function testcase() { - var obj = {}; +var obj = {}; - obj.foo = true; // default value of attributes: writable: true, configurable: true, enumerable: true +obj.foo = true; // default value of attributes: writable: true, configurable: true, enumerable: true + +Object.defineProperty(obj, "foo", { value: false }); +verifyEqualTo(obj, "foo", false); + +verifyWritable(obj, "foo"); + +verifyEnumerable(obj, "foo"); + +verifyConfigurable(obj, "foo"); - Object.defineProperty(obj, "foo", { value: false }); - return dataPropertyAttributesAreCorrect(obj, "foo", false, true, true, true); - } -runTestCase(testcase); |