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/Symbol | |
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/Symbol')
16 files changed, 76 insertions, 66 deletions
diff --git a/js/src/tests/test262/built-ins/Symbol/for/length.js b/js/src/tests/test262/built-ins/Symbol/for/length.js index 5875d22702..17c82f8979 100644 --- a/js/src/tests/test262/built-ins/Symbol/for/length.js +++ b/js/src/tests/test262/built-ins/Symbol/for/length.js @@ -23,10 +23,11 @@ includes: [propertyHelper.js] features: [Symbol] ---*/ -assert.sameValue(Symbol.for.length, 1); - -verifyNotEnumerable(Symbol.for, "length"); -verifyNotWritable(Symbol.for, "length"); -verifyConfigurable(Symbol.for, "length"); +verifyProperty(Symbol.for, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Symbol/for/name.js b/js/src/tests/test262/built-ins/Symbol/for/name.js index fce43732c0..d7674139e5 100644 --- a/js/src/tests/test262/built-ins/Symbol/for/name.js +++ b/js/src/tests/test262/built-ins/Symbol/for/name.js @@ -20,10 +20,11 @@ includes: [propertyHelper.js] features: [Symbol] ---*/ -assert.sameValue(Symbol.for.name, "for"); - -verifyNotEnumerable(Symbol.for, "name"); -verifyNotWritable(Symbol.for, "name"); -verifyConfigurable(Symbol.for, "name"); +verifyProperty(Symbol.for, "name", { + value: "for", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Symbol/for/not-a-constructor.js b/js/src/tests/test262/built-ins/Symbol/for/not-a-constructor.js index a90a09e9a3..3e88dd3a7b 100644 --- a/js/src/tests/test262/built-ins/Symbol/for/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Symbol/for/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Symbol.for), false, 'isConstructor(Symbol.for) mu assert.throws(TypeError, () => { new Symbol.for(); -}, '`new Symbol.for()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Symbol/keyFor/length.js b/js/src/tests/test262/built-ins/Symbol/keyFor/length.js index 8f1296daf6..b01ae0f8bf 100644 --- a/js/src/tests/test262/built-ins/Symbol/keyFor/length.js +++ b/js/src/tests/test262/built-ins/Symbol/keyFor/length.js @@ -23,10 +23,11 @@ includes: [propertyHelper.js] features: [Symbol] ---*/ -assert.sameValue(Symbol.keyFor.length, 1); - -verifyNotEnumerable(Symbol.keyFor, "length"); -verifyNotWritable(Symbol.keyFor, "length"); -verifyConfigurable(Symbol.keyFor, "length"); +verifyProperty(Symbol.keyFor, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Symbol/keyFor/name.js b/js/src/tests/test262/built-ins/Symbol/keyFor/name.js index 10adeeb674..9bbd98a48d 100644 --- a/js/src/tests/test262/built-ins/Symbol/keyFor/name.js +++ b/js/src/tests/test262/built-ins/Symbol/keyFor/name.js @@ -20,10 +20,11 @@ includes: [propertyHelper.js] features: [Symbol] ---*/ -assert.sameValue(Symbol.keyFor.name, "keyFor"); - -verifyNotEnumerable(Symbol.keyFor, "name"); -verifyNotWritable(Symbol.keyFor, "name"); -verifyConfigurable(Symbol.keyFor, "name"); +verifyProperty(Symbol.keyFor, "name", { + value: "keyFor", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Symbol/keyFor/not-a-constructor.js b/js/src/tests/test262/built-ins/Symbol/keyFor/not-a-constructor.js index 61d6b676d6..ac45a99ffe 100644 --- a/js/src/tests/test262/built-ins/Symbol/keyFor/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Symbol/keyFor/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Symbol.keyFor), false, 'isConstructor(Symbol.keyF assert.throws(TypeError, () => { new Symbol.keyFor(Symbol()); -}, '`new Symbol.keyFor(Symbol())` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Symbol/length.js b/js/src/tests/test262/built-ins/Symbol/length.js index f50c96667d..d9caf91980 100644 --- a/js/src/tests/test262/built-ins/Symbol/length.js +++ b/js/src/tests/test262/built-ins/Symbol/length.js @@ -12,10 +12,11 @@ includes: [propertyHelper.js] features: [Symbol] ---*/ -assert.sameValue(Symbol.length, 0, "The value of `Symbol.length` is `0`"); - -verifyNotEnumerable(Symbol, "length"); -verifyNotWritable(Symbol, "length"); -verifyConfigurable(Symbol, "length"); +verifyProperty(Symbol, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Symbol/name.js b/js/src/tests/test262/built-ins/Symbol/name.js index c639fc142d..834756a954 100644 --- a/js/src/tests/test262/built-ins/Symbol/name.js +++ b/js/src/tests/test262/built-ins/Symbol/name.js @@ -10,10 +10,11 @@ includes: [propertyHelper.js] features: [Symbol] ---*/ -assert.sameValue(Symbol.name, "Symbol", "The value of `Symbol.name` is `'Symbol'`"); - -verifyNotEnumerable(Symbol, "name"); -verifyNotWritable(Symbol, "name"); -verifyConfigurable(Symbol, "name"); +verifyProperty(Symbol, "name", { + value: "Symbol", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Symbol/prototype/Symbol.toPrimitive/length.js b/js/src/tests/test262/built-ins/Symbol/prototype/Symbol.toPrimitive/length.js index b2cf331005..55b25f33c4 100644 --- a/js/src/tests/test262/built-ins/Symbol/prototype/Symbol.toPrimitive/length.js +++ b/js/src/tests/test262/built-ins/Symbol/prototype/Symbol.toPrimitive/length.js @@ -20,10 +20,11 @@ features: [Symbol.toPrimitive] includes: [propertyHelper.js] ---*/ -assert.sameValue(Symbol.prototype[Symbol.toPrimitive].length, 1); - -verifyNotEnumerable(Symbol.prototype[Symbol.toPrimitive], 'length'); -verifyNotWritable(Symbol.prototype[Symbol.toPrimitive], 'length'); -verifyConfigurable(Symbol.prototype[Symbol.toPrimitive], 'length'); +verifyProperty(Symbol.prototype[Symbol.toPrimitive], "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Symbol/prototype/Symbol.toPrimitive/name.js b/js/src/tests/test262/built-ins/Symbol/prototype/Symbol.toPrimitive/name.js index 58579822e7..c31147ac68 100644 --- a/js/src/tests/test262/built-ins/Symbol/prototype/Symbol.toPrimitive/name.js +++ b/js/src/tests/test262/built-ins/Symbol/prototype/Symbol.toPrimitive/name.js @@ -17,12 +17,11 @@ features: [Symbol.toPrimitive] includes: [propertyHelper.js] ---*/ -assert.sameValue( - Symbol.prototype[Symbol.toPrimitive].name, '[Symbol.toPrimitive]' -); - -verifyNotEnumerable(Symbol.prototype[Symbol.toPrimitive], 'name'); -verifyNotWritable(Symbol.prototype[Symbol.toPrimitive], 'name'); -verifyConfigurable(Symbol.prototype[Symbol.toPrimitive], 'name'); +verifyProperty(Symbol.prototype[Symbol.toPrimitive], "name", { + value: "[Symbol.toPrimitive]", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Symbol/prototype/toString/length.js b/js/src/tests/test262/built-ins/Symbol/prototype/toString/length.js index 84e95cf747..22cc78485f 100644 --- a/js/src/tests/test262/built-ins/Symbol/prototype/toString/length.js +++ b/js/src/tests/test262/built-ins/Symbol/prototype/toString/length.js @@ -23,10 +23,11 @@ includes: [propertyHelper.js] features: [Symbol] ---*/ -assert.sameValue(Symbol.prototype.toString.length, 0); - -verifyNotEnumerable(Symbol.prototype.toString, "length"); -verifyNotWritable(Symbol.prototype.toString, "length"); -verifyConfigurable(Symbol.prototype.toString, "length"); +verifyProperty(Symbol.prototype.toString, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Symbol/prototype/toString/name.js b/js/src/tests/test262/built-ins/Symbol/prototype/toString/name.js index 705eb779f6..d6aa21719e 100644 --- a/js/src/tests/test262/built-ins/Symbol/prototype/toString/name.js +++ b/js/src/tests/test262/built-ins/Symbol/prototype/toString/name.js @@ -20,10 +20,11 @@ includes: [propertyHelper.js] features: [Symbol] ---*/ -assert.sameValue(Symbol.prototype.toString.name, "toString"); - -verifyNotEnumerable(Symbol.prototype.toString, "name"); -verifyNotWritable(Symbol.prototype.toString, "name"); -verifyConfigurable(Symbol.prototype.toString, "name"); +verifyProperty(Symbol.prototype.toString, "name", { + value: "toString", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Symbol/prototype/toString/not-a-constructor.js b/js/src/tests/test262/built-ins/Symbol/prototype/toString/not-a-constructor.js index 58914a60d2..c590ca39e0 100644 --- a/js/src/tests/test262/built-ins/Symbol/prototype/toString/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Symbol/prototype/toString/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let symbol = Symbol(); new symbol.toString(); -}, '`let symbol = Symbol(); new symbol.toString()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Symbol/prototype/valueOf/length.js b/js/src/tests/test262/built-ins/Symbol/prototype/valueOf/length.js index 0134f86d03..3fe32533ba 100644 --- a/js/src/tests/test262/built-ins/Symbol/prototype/valueOf/length.js +++ b/js/src/tests/test262/built-ins/Symbol/prototype/valueOf/length.js @@ -23,10 +23,11 @@ includes: [propertyHelper.js] features: [Symbol] ---*/ -assert.sameValue(Symbol.prototype.valueOf.length, 0); - -verifyNotEnumerable(Symbol.prototype.valueOf, "length"); -verifyNotWritable(Symbol.prototype.valueOf, "length"); -verifyConfigurable(Symbol.prototype.valueOf, "length"); +verifyProperty(Symbol.prototype.valueOf, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Symbol/prototype/valueOf/name.js b/js/src/tests/test262/built-ins/Symbol/prototype/valueOf/name.js index a9104cd8a8..4ff3ef9dfa 100644 --- a/js/src/tests/test262/built-ins/Symbol/prototype/valueOf/name.js +++ b/js/src/tests/test262/built-ins/Symbol/prototype/valueOf/name.js @@ -20,10 +20,11 @@ includes: [propertyHelper.js] features: [Symbol] ---*/ -assert.sameValue(Symbol.prototype.valueOf.name, "valueOf"); - -verifyNotEnumerable(Symbol.prototype.valueOf, "name"); -verifyNotWritable(Symbol.prototype.valueOf, "name"); -verifyConfigurable(Symbol.prototype.valueOf, "name"); +verifyProperty(Symbol.prototype.valueOf, "name", { + value: "valueOf", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Symbol/prototype/valueOf/not-a-constructor.js b/js/src/tests/test262/built-ins/Symbol/prototype/valueOf/not-a-constructor.js index e9edf778b8..7d0dbb5390 100644 --- a/js/src/tests/test262/built-ins/Symbol/prototype/valueOf/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Symbol/prototype/valueOf/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let symbol = Symbol(); new symbol.valueOf(); -}, '`let symbol = Symbol(); new symbol.valueOf()` throws TypeError'); +}); reportCompare(0, 0); |