diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/WeakSet/prototype/delete')
3 files changed, 13 insertions, 17 deletions
diff --git a/js/src/tests/test262/built-ins/WeakSet/prototype/delete/length.js b/js/src/tests/test262/built-ins/WeakSet/prototype/delete/length.js index 516b074855..63d20118fd 100644 --- a/js/src/tests/test262/built-ins/WeakSet/prototype/delete/length.js +++ b/js/src/tests/test262/built-ins/WeakSet/prototype/delete/length.js @@ -12,13 +12,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakSet.prototype.delete.length, 1, - 'The value of WeakSet.prototype.delete.length is 1' -); - -verifyNotEnumerable(WeakSet.prototype.delete, 'length'); -verifyNotWritable(WeakSet.prototype.delete, 'length'); -verifyConfigurable(WeakSet.prototype.delete, 'length'); +verifyProperty(WeakSet.prototype.delete, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/WeakSet/prototype/delete/name.js b/js/src/tests/test262/built-ins/WeakSet/prototype/delete/name.js index b759002e7c..da0d4f7fa3 100644 --- a/js/src/tests/test262/built-ins/WeakSet/prototype/delete/name.js +++ b/js/src/tests/test262/built-ins/WeakSet/prototype/delete/name.js @@ -12,13 +12,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakSet.prototype.delete.name, 'delete', - 'The value of WeakSet.prototype.delete.name is "delete"' -); - -verifyNotEnumerable(WeakSet.prototype.delete, 'name'); -verifyNotWritable(WeakSet.prototype.delete, 'name'); -verifyConfigurable(WeakSet.prototype.delete, 'name'); +verifyProperty(WeakSet.prototype.delete, "name", { + value: "delete", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/WeakSet/prototype/delete/not-a-constructor.js b/js/src/tests/test262/built-ins/WeakSet/prototype/delete/not-a-constructor.js index 3f5c5605d0..b12b0c07f9 100644 --- a/js/src/tests/test262/built-ins/WeakSet/prototype/delete/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/WeakSet/prototype/delete/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let ws = new WeakSet(); new ws.delete(); -}, '`let ws = new WeakSet(); new ws.delete()` throws TypeError'); +}); reportCompare(0, 0); |