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/Proxy | |
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/Proxy')
8 files changed, 33 insertions, 28 deletions
diff --git a/js/src/tests/test262/built-ins/Proxy/create-target-is-not-a-constructor.js b/js/src/tests/test262/built-ins/Proxy/create-target-is-not-a-constructor.js index 2bd3fe46c5..47551407f6 100644 --- a/js/src/tests/test262/built-ins/Proxy/create-target-is-not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Proxy/create-target-is-not-a-constructor.js @@ -28,6 +28,6 @@ proxy(); // the Proxy object is callable assert.sameValue(isConstructor(proxy), false, 'isConstructor(proxy) must return false'); assert.throws(TypeError, () => { new proxy(); -}, '`new proxy()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Proxy/length.js b/js/src/tests/test262/built-ins/Proxy/length.js index 9bacc49713..01b9b1407e 100644 --- a/js/src/tests/test262/built-ins/Proxy/length.js +++ b/js/src/tests/test262/built-ins/Proxy/length.js @@ -11,10 +11,11 @@ includes: [propertyHelper.js] features: [Proxy] ---*/ -assert.sameValue(Proxy.length, 2, "The value of `Proxy.length` is `2`"); - -verifyNotEnumerable(Proxy, "length"); -verifyNotWritable(Proxy, "length"); -verifyConfigurable(Proxy, "length"); +verifyProperty(Proxy, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Proxy/name.js b/js/src/tests/test262/built-ins/Proxy/name.js index 31d3ec097d..abdf0dda73 100644 --- a/js/src/tests/test262/built-ins/Proxy/name.js +++ b/js/src/tests/test262/built-ins/Proxy/name.js @@ -11,10 +11,11 @@ includes: [propertyHelper.js] features: [Proxy] ---*/ -assert.sameValue(Proxy.name, "Proxy", "The value of `Proxy.name` is `'Proxy'`"); - -verifyNotEnumerable(Proxy, "name"); -verifyNotWritable(Proxy, "name"); -verifyConfigurable(Proxy, "name"); +verifyProperty(Proxy, "name", { + value: "Proxy", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Proxy/revocable/length.js b/js/src/tests/test262/built-ins/Proxy/revocable/length.js index 8c1b055371..1b5dfc85c3 100644 --- a/js/src/tests/test262/built-ins/Proxy/revocable/length.js +++ b/js/src/tests/test262/built-ins/Proxy/revocable/length.js @@ -23,10 +23,11 @@ includes: [propertyHelper.js] features: [Proxy] ---*/ -assert.sameValue(Proxy.revocable.length, 2); - -verifyNotEnumerable(Proxy.revocable, "length"); -verifyNotWritable(Proxy.revocable, "length"); -verifyConfigurable(Proxy.revocable, "length"); +verifyProperty(Proxy.revocable, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Proxy/revocable/name.js b/js/src/tests/test262/built-ins/Proxy/revocable/name.js index 0e7ce54890..71690c482b 100644 --- a/js/src/tests/test262/built-ins/Proxy/revocable/name.js +++ b/js/src/tests/test262/built-ins/Proxy/revocable/name.js @@ -20,10 +20,11 @@ includes: [propertyHelper.js] features: [Proxy] ---*/ -assert.sameValue(Proxy.revocable.name, "revocable"); - -verifyNotEnumerable(Proxy.revocable, "name"); -verifyNotWritable(Proxy.revocable, "name"); -verifyConfigurable(Proxy.revocable, "name"); +verifyProperty(Proxy.revocable, "name", { + value: "revocable", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Proxy/revocable/not-a-constructor.js b/js/src/tests/test262/built-ins/Proxy/revocable/not-a-constructor.js index 0d1e9bdff5..95fb044f82 100644 --- a/js/src/tests/test262/built-ins/Proxy/revocable/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Proxy/revocable/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Proxy.revocable), false, 'isConstructor(Proxy.rev assert.throws(TypeError, () => { new Proxy.revocable({}, {}); -}, '`new Proxy.revocable({}, {})` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Proxy/revocable/revocation-function-length.js b/js/src/tests/test262/built-ins/Proxy/revocable/revocation-function-length.js index ac59134301..2460658438 100644 --- a/js/src/tests/test262/built-ins/Proxy/revocable/revocation-function-length.js +++ b/js/src/tests/test262/built-ins/Proxy/revocable/revocation-function-length.js @@ -17,10 +17,11 @@ features: [Proxy] var revocationFunction = Proxy.revocable({}, {}).revoke; -assert.sameValue(revocationFunction.length, 0); - -verifyNotEnumerable(revocationFunction, "length"); -verifyNotWritable(revocationFunction, "length"); -verifyConfigurable(revocationFunction, "length"); +verifyProperty(revocationFunction, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Proxy/revocable/revocation-function-not-a-constructor.js b/js/src/tests/test262/built-ins/Proxy/revocable/revocation-function-not-a-constructor.js index 643c7e57c2..40fdf658ea 100644 --- a/js/src/tests/test262/built-ins/Proxy/revocable/revocation-function-not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Proxy/revocable/revocation-function-not-a-constructor.js @@ -23,7 +23,7 @@ assert.sameValue( assert.sameValue(isConstructor(revocationFunction), false, 'isConstructor(revocationFunction) must return false'); assert.throws(TypeError, () => { new revocationFunction(); -}, '`new revocationFunction()` throws TypeError'); +}); |