From 8dd16259287f58f9273002717ec4d27e97127719 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:43:14 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- js/src/tests/test262/built-ins/WeakSet/length.js | 11 ++++++----- js/src/tests/test262/built-ins/WeakSet/name.js | 14 ++++++-------- .../test262/built-ins/WeakSet/prototype/add/length.js | 14 ++++++-------- .../tests/test262/built-ins/WeakSet/prototype/add/name.js | 14 ++++++-------- .../built-ins/WeakSet/prototype/add/not-a-constructor.js | 2 +- .../test262/built-ins/WeakSet/prototype/delete/length.js | 14 ++++++-------- .../test262/built-ins/WeakSet/prototype/delete/name.js | 14 ++++++-------- .../WeakSet/prototype/delete/not-a-constructor.js | 2 +- .../test262/built-ins/WeakSet/prototype/has/length.js | 14 ++++++-------- .../tests/test262/built-ins/WeakSet/prototype/has/name.js | 14 ++++++-------- .../built-ins/WeakSet/prototype/has/not-a-constructor.js | 2 +- 11 files changed, 51 insertions(+), 64 deletions(-) (limited to 'js/src/tests/test262/built-ins/WeakSet') diff --git a/js/src/tests/test262/built-ins/WeakSet/length.js b/js/src/tests/test262/built-ins/WeakSet/length.js index a34c33236d..606922e0de 100644 --- a/js/src/tests/test262/built-ins/WeakSet/length.js +++ b/js/src/tests/test262/built-ins/WeakSet/length.js @@ -7,10 +7,11 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(WeakSet.length, 0, 'The value of `WeakSet.length` is `0`'); - -verifyNotEnumerable(WeakSet, 'length'); -verifyNotWritable(WeakSet, 'length'); -verifyConfigurable(WeakSet, 'length'); +verifyProperty(WeakSet, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/WeakSet/name.js b/js/src/tests/test262/built-ins/WeakSet/name.js index dedd6f4fd0..331b94e501 100644 --- a/js/src/tests/test262/built-ins/WeakSet/name.js +++ b/js/src/tests/test262/built-ins/WeakSet/name.js @@ -10,13 +10,11 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakSet.name, 'WeakSet', - 'The value of `WeakSet.name` is "WeakSet"' -); - -verifyNotEnumerable(WeakSet, 'name'); -verifyNotWritable(WeakSet, 'name'); -verifyConfigurable(WeakSet, 'name'); +verifyProperty(WeakSet, "name", { + value: "WeakSet", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/WeakSet/prototype/add/length.js b/js/src/tests/test262/built-ins/WeakSet/prototype/add/length.js index 7112319f12..f6b1312673 100644 --- a/js/src/tests/test262/built-ins/WeakSet/prototype/add/length.js +++ b/js/src/tests/test262/built-ins/WeakSet/prototype/add/length.js @@ -11,13 +11,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakSet.prototype.add.length, 1, - 'The value of `WeakSet.prototype.add.length` is `1`' -); - -verifyNotEnumerable(WeakSet.prototype.add, 'length'); -verifyNotWritable(WeakSet.prototype.add, 'length'); -verifyConfigurable(WeakSet.prototype.add, 'length'); +verifyProperty(WeakSet.prototype.add, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/WeakSet/prototype/add/name.js b/js/src/tests/test262/built-ins/WeakSet/prototype/add/name.js index e81470dc1c..5383bbd19a 100644 --- a/js/src/tests/test262/built-ins/WeakSet/prototype/add/name.js +++ b/js/src/tests/test262/built-ins/WeakSet/prototype/add/name.js @@ -11,13 +11,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakSet.prototype.add.name, 'add', - 'The value of WeakSet.prototype.add.name is "add"' -); - -verifyNotEnumerable(WeakSet.prototype.add, 'name'); -verifyNotWritable(WeakSet.prototype.add, 'name'); -verifyConfigurable(WeakSet.prototype.add, 'name'); +verifyProperty(WeakSet.prototype.add, "name", { + value: "add", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/WeakSet/prototype/add/not-a-constructor.js b/js/src/tests/test262/built-ins/WeakSet/prototype/add/not-a-constructor.js index df2a033c51..3024ce6299 100644 --- a/js/src/tests/test262/built-ins/WeakSet/prototype/add/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/WeakSet/prototype/add/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let ws = new WeakSet(); new ws.add({}); -}, '`let ws = new WeakSet(); new ws.add({})` throws TypeError'); +}); reportCompare(0, 0); 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); diff --git a/js/src/tests/test262/built-ins/WeakSet/prototype/has/length.js b/js/src/tests/test262/built-ins/WeakSet/prototype/has/length.js index 5e4176a5cc..cec3d5e3f0 100644 --- a/js/src/tests/test262/built-ins/WeakSet/prototype/has/length.js +++ b/js/src/tests/test262/built-ins/WeakSet/prototype/has/length.js @@ -12,13 +12,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakSet.prototype.has.length, 1, - 'The value of WeakSet.prototype.has.length is 1' -); - -verifyNotEnumerable(WeakSet.prototype.has, 'length'); -verifyNotWritable(WeakSet.prototype.has, 'length'); -verifyConfigurable(WeakSet.prototype.has, 'length'); +verifyProperty(WeakSet.prototype.has, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/WeakSet/prototype/has/name.js b/js/src/tests/test262/built-ins/WeakSet/prototype/has/name.js index 6fca676585..11c364e160 100644 --- a/js/src/tests/test262/built-ins/WeakSet/prototype/has/name.js +++ b/js/src/tests/test262/built-ins/WeakSet/prototype/has/name.js @@ -12,13 +12,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakSet.prototype.has.name, 'has', - 'The value of WeakSet.prototype.has.name is "has"' -); - -verifyNotEnumerable(WeakSet.prototype.has, 'name'); -verifyNotWritable(WeakSet.prototype.has, 'name'); -verifyConfigurable(WeakSet.prototype.has, 'name'); +verifyProperty(WeakSet.prototype.has, "name", { + value: "has", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/WeakSet/prototype/has/not-a-constructor.js b/js/src/tests/test262/built-ins/WeakSet/prototype/has/not-a-constructor.js index b21d7cb36f..caff7da47f 100644 --- a/js/src/tests/test262/built-ins/WeakSet/prototype/has/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/WeakSet/prototype/has/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let ws = new WeakSet(); new ws.has(); -}, '`let ws = new WeakSet(); new ws.has()` throws TypeError'); +}); reportCompare(0, 0); -- cgit v1.2.3