diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Map/prototype/delete')
3 files changed, 13 insertions, 17 deletions
diff --git a/js/src/tests/test262/built-ins/Map/prototype/delete/length.js b/js/src/tests/test262/built-ins/Map/prototype/delete/length.js index 2be05ee2b1..27c629003a 100644 --- a/js/src/tests/test262/built-ins/Map/prototype/delete/length.js +++ b/js/src/tests/test262/built-ins/Map/prototype/delete/length.js @@ -12,13 +12,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Map.prototype.delete.length, 1, - 'The value of `Map.prototype.delete.length` is `1`' -); - -verifyNotEnumerable(Map.prototype.delete, 'length'); -verifyNotWritable(Map.prototype.delete, 'length'); -verifyConfigurable(Map.prototype.delete, 'length'); +verifyProperty(Map.prototype.delete, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Map/prototype/delete/name.js b/js/src/tests/test262/built-ins/Map/prototype/delete/name.js index dcacf4f3ee..95ca61a4ef 100644 --- a/js/src/tests/test262/built-ins/Map/prototype/delete/name.js +++ b/js/src/tests/test262/built-ins/Map/prototype/delete/name.js @@ -12,13 +12,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Map.prototype.delete.name, 'delete', - 'The value of `Map.prototype.delete.name` is `"delete"`' -); - -verifyNotEnumerable(Map.prototype.delete, 'name'); -verifyNotWritable(Map.prototype.delete, 'name'); -verifyConfigurable(Map.prototype.delete, 'name'); +verifyProperty(Map.prototype.delete, "name", { + value: "delete", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Map/prototype/delete/not-a-constructor.js b/js/src/tests/test262/built-ins/Map/prototype/delete/not-a-constructor.js index fb43d0a430..3cc5490f94 100644 --- a/js/src/tests/test262/built-ins/Map/prototype/delete/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Map/prototype/delete/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Map.prototype.delete), false, 'isConstructor(Map. assert.throws(TypeError, () => { let m = new Map(); new m.delete(); -}, '`let m = new Map(); new m.delete()` throws TypeError'); +}); reportCompare(0, 0); |