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