diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Reflect/defineProperty')
3 files changed, 13 insertions, 17 deletions
diff --git a/js/src/tests/test262/built-ins/Reflect/defineProperty/length.js b/js/src/tests/test262/built-ins/Reflect/defineProperty/length.js index 2b5b742918..f83f561d79 100644 --- a/js/src/tests/test262/built-ins/Reflect/defineProperty/length.js +++ b/js/src/tests/test262/built-ins/Reflect/defineProperty/length.js @@ -8,13 +8,11 @@ includes: [propertyHelper.js] features: [Reflect] ---*/ -assert.sameValue( - Reflect.defineProperty.length, 3, - 'The value of `Reflect.defineProperty.length` is `3`' -); - -verifyNotEnumerable(Reflect.defineProperty, 'length'); -verifyNotWritable(Reflect.defineProperty, 'length'); -verifyConfigurable(Reflect.defineProperty, 'length'); +verifyProperty(Reflect.defineProperty, "length", { + value: 3, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Reflect/defineProperty/name.js b/js/src/tests/test262/built-ins/Reflect/defineProperty/name.js index 5315b9d272..29214c37b5 100644 --- a/js/src/tests/test262/built-ins/Reflect/defineProperty/name.js +++ b/js/src/tests/test262/built-ins/Reflect/defineProperty/name.js @@ -13,13 +13,11 @@ includes: [propertyHelper.js] features: [Reflect] ---*/ -assert.sameValue( - Reflect.defineProperty.name, 'defineProperty', - 'The value of `Reflect.defineProperty.name` is `"defineProperty"`' -); - -verifyNotEnumerable(Reflect.defineProperty, 'name'); -verifyNotWritable(Reflect.defineProperty, 'name'); -verifyConfigurable(Reflect.defineProperty, 'name'); +verifyProperty(Reflect.defineProperty, "name", { + value: "defineProperty", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Reflect/defineProperty/not-a-constructor.js b/js/src/tests/test262/built-ins/Reflect/defineProperty/not-a-constructor.js index c878ad4756..a343891cdc 100644 --- a/js/src/tests/test262/built-ins/Reflect/defineProperty/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Reflect/defineProperty/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { new Reflect.defineProperty({}, ''); -}, '`new Reflect.defineProperty({}, \'\')` throws TypeError'); +}); reportCompare(0, 0); |