diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
commit | 8dd16259287f58f9273002717ec4d27e97127719 (patch) | |
tree | 3863e62a53829a84037444beab3abd4ed9dfc7d0 /js/src/tests/test262/built-ins/WeakMap/prototype | |
parent | Releasing progress-linux version 126.0.1-1~progress7.99u1. (diff) | |
download | firefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz firefox-8dd16259287f58f9273002717ec4d27e97127719.zip |
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'js/src/tests/test262/built-ins/WeakMap/prototype')
12 files changed, 52 insertions, 68 deletions
diff --git a/js/src/tests/test262/built-ins/WeakMap/prototype/delete/length.js b/js/src/tests/test262/built-ins/WeakMap/prototype/delete/length.js index bfdcaff706..768a17db21 100644 --- a/js/src/tests/test262/built-ins/WeakMap/prototype/delete/length.js +++ b/js/src/tests/test262/built-ins/WeakMap/prototype/delete/length.js @@ -12,13 +12,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakMap.prototype.delete.length, 1, - 'The value of WeakMap.prototype.delete.length is 1' -); - -verifyNotEnumerable(WeakMap.prototype.delete, 'length'); -verifyNotWritable(WeakMap.prototype.delete, 'length'); -verifyConfigurable(WeakMap.prototype.delete, 'length'); +verifyProperty(WeakMap.prototype.delete, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/WeakMap/prototype/delete/name.js b/js/src/tests/test262/built-ins/WeakMap/prototype/delete/name.js index 67bc4d2ee4..129943adcf 100644 --- a/js/src/tests/test262/built-ins/WeakMap/prototype/delete/name.js +++ b/js/src/tests/test262/built-ins/WeakMap/prototype/delete/name.js @@ -12,13 +12,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakMap.prototype.delete.name, 'delete', - 'The value of WeakMap.prototype.delete.name is "delete"' -); - -verifyNotEnumerable(WeakMap.prototype.delete, 'name'); -verifyNotWritable(WeakMap.prototype.delete, 'name'); -verifyConfigurable(WeakMap.prototype.delete, 'name'); +verifyProperty(WeakMap.prototype.delete, "name", { + value: "delete", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/WeakMap/prototype/delete/not-a-constructor.js b/js/src/tests/test262/built-ins/WeakMap/prototype/delete/not-a-constructor.js index 59136bd1ef..eb219ebd2f 100644 --- a/js/src/tests/test262/built-ins/WeakMap/prototype/delete/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/WeakMap/prototype/delete/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let wm = new WeakMap(); new wm.delete(); -}, '`let wm = new WeakMap(); new wm.delete()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/WeakMap/prototype/get/length.js b/js/src/tests/test262/built-ins/WeakMap/prototype/get/length.js index eb8f7d546e..5b1f046fb7 100644 --- a/js/src/tests/test262/built-ins/WeakMap/prototype/get/length.js +++ b/js/src/tests/test262/built-ins/WeakMap/prototype/get/length.js @@ -12,13 +12,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakMap.prototype.get.length, 1, - 'The value of `WeakMap.prototype.get.length` is `1`' -); - -verifyNotEnumerable(WeakMap.prototype.get, 'length'); -verifyNotWritable(WeakMap.prototype.get, 'length'); -verifyConfigurable(WeakMap.prototype.get, 'length'); +verifyProperty(WeakMap.prototype.get, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/WeakMap/prototype/get/name.js b/js/src/tests/test262/built-ins/WeakMap/prototype/get/name.js index ce82cdb4e4..cd457ec7db 100644 --- a/js/src/tests/test262/built-ins/WeakMap/prototype/get/name.js +++ b/js/src/tests/test262/built-ins/WeakMap/prototype/get/name.js @@ -12,13 +12,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakMap.prototype.get.name, 'get', - 'The value of `WeakMap.prototype.get.name` is `"get"`' -); - -verifyNotEnumerable(WeakMap.prototype.get, 'name'); -verifyNotWritable(WeakMap.prototype.get, 'name'); -verifyConfigurable(WeakMap.prototype.get, 'name'); +verifyProperty(WeakMap.prototype.get, "name", { + value: "get", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/WeakMap/prototype/get/not-a-constructor.js b/js/src/tests/test262/built-ins/WeakMap/prototype/get/not-a-constructor.js index ec8be07522..5d4e7e6adc 100644 --- a/js/src/tests/test262/built-ins/WeakMap/prototype/get/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/WeakMap/prototype/get/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let wm = new WeakMap(); new wm.get(); -}, '`let wm = new WeakMap(); new wm.get()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/WeakMap/prototype/has/length.js b/js/src/tests/test262/built-ins/WeakMap/prototype/has/length.js index a68fa8ecec..fab022f055 100644 --- a/js/src/tests/test262/built-ins/WeakMap/prototype/has/length.js +++ b/js/src/tests/test262/built-ins/WeakMap/prototype/has/length.js @@ -12,13 +12,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakMap.prototype.has.length, 1, - 'The value of WeakMap.prototype.has.length is 1' -); - -verifyNotEnumerable(WeakMap.prototype.has, 'length'); -verifyNotWritable(WeakMap.prototype.has, 'length'); -verifyConfigurable(WeakMap.prototype.has, 'length'); +verifyProperty(WeakMap.prototype.has, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/WeakMap/prototype/has/name.js b/js/src/tests/test262/built-ins/WeakMap/prototype/has/name.js index 558f24335d..15595af753 100644 --- a/js/src/tests/test262/built-ins/WeakMap/prototype/has/name.js +++ b/js/src/tests/test262/built-ins/WeakMap/prototype/has/name.js @@ -12,13 +12,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakMap.prototype.has.name, 'has', - 'The value of WeakMap.prototype.has.name is "has"' -); - -verifyNotEnumerable(WeakMap.prototype.has, 'name'); -verifyNotWritable(WeakMap.prototype.has, 'name'); -verifyConfigurable(WeakMap.prototype.has, 'name'); +verifyProperty(WeakMap.prototype.has, "name", { + value: "has", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/WeakMap/prototype/has/not-a-constructor.js b/js/src/tests/test262/built-ins/WeakMap/prototype/has/not-a-constructor.js index 83df17bbf5..ecdc3c7702 100644 --- a/js/src/tests/test262/built-ins/WeakMap/prototype/has/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/WeakMap/prototype/has/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let wm = new WeakMap(); new wm.has(); -}, '`let wm = new WeakMap(); new wm.has()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/WeakMap/prototype/set/length.js b/js/src/tests/test262/built-ins/WeakMap/prototype/set/length.js index 052f181e53..1e5665313e 100644 --- a/js/src/tests/test262/built-ins/WeakMap/prototype/set/length.js +++ b/js/src/tests/test262/built-ins/WeakMap/prototype/set/length.js @@ -11,13 +11,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakMap.prototype.set.length, 2, - 'The value of `WeakMap.prototype.set.length` is `2`' -); - -verifyNotEnumerable(WeakMap.prototype.set, 'length'); -verifyNotWritable(WeakMap.prototype.set, 'length'); -verifyConfigurable(WeakMap.prototype.set, 'length'); +verifyProperty(WeakMap.prototype.set, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/WeakMap/prototype/set/name.js b/js/src/tests/test262/built-ins/WeakMap/prototype/set/name.js index f1d62ffef5..b30a386faa 100644 --- a/js/src/tests/test262/built-ins/WeakMap/prototype/set/name.js +++ b/js/src/tests/test262/built-ins/WeakMap/prototype/set/name.js @@ -11,13 +11,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakMap.prototype.set.name, 'set', - 'The value of WeakMap.prototype.set.name is "set"' -); - -verifyNotEnumerable(WeakMap.prototype.set, 'name'); -verifyNotWritable(WeakMap.prototype.set, 'name'); -verifyConfigurable(WeakMap.prototype.set, 'name'); +verifyProperty(WeakMap.prototype.set, "name", { + value: "set", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/WeakMap/prototype/set/not-a-constructor.js b/js/src/tests/test262/built-ins/WeakMap/prototype/set/not-a-constructor.js index c8d6272217..b3e89c04d1 100644 --- a/js/src/tests/test262/built-ins/WeakMap/prototype/set/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/WeakMap/prototype/set/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let wm = new WeakMap(); new wm.set({}, 1); -}, '`let wm = new WeakMap(); new wm.set({}, 1)` throws TypeError'); +}); reportCompare(0, 0); |