From bb0ad134f5e46454d87c9a3fe44154c326bbd28a Mon Sep 17 00:00:00 2001 From: rwaldron Date: Mon, 19 Jul 2021 13:26:09 -0400 Subject: [PATCH] fix: use verifyProperty --- test/built-ins/Realm/descriptor.js | 8 +++++--- test/built-ins/Realm/length.js | 11 ++++++----- test/built-ins/Realm/name.js | 11 ++++++----- test/built-ins/Realm/prototype/evaluate/length.js | 2 -- 4 files changed, 17 insertions(+), 15 deletions(-) diff --git a/test/built-ins/Realm/descriptor.js b/test/built-ins/Realm/descriptor.js index e1cec5fdde..f447024d49 100644 --- a/test/built-ins/Realm/descriptor.js +++ b/test/built-ins/Realm/descriptor.js @@ -8,6 +8,8 @@ includes: [propertyHelper.js] features: [callable-boundary-realms] ---*/ -verifyNotEnumerable(this, "Realm"); -verifyWritable(this, "Realm"); -verifyConfigurable(this, "Realm"); +verifyProperty(this, "Realm", { + enumerable: false, + writable: true, + configurable: true, +}); diff --git a/test/built-ins/Realm/length.js b/test/built-ins/Realm/length.js index 856df04436..b299fed3f0 100644 --- a/test/built-ins/Realm/length.js +++ b/test/built-ins/Realm/length.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js] features: [callable-boundary-realms] ---*/ -assert.sameValue(Realm.length, 0, "The value of `Realm.length` is `0`"); - -verifyNotEnumerable(Realm, "length"); -verifyNotWritable(Realm, "length"); -verifyConfigurable(Realm, "length"); +verifyProperty(Realm, "length", { + value: 0, + enumerable: false, + writable: false, + configurable: true, +}); diff --git a/test/built-ins/Realm/name.js b/test/built-ins/Realm/name.js index 436a199386..b3c6e17d2c 100644 --- a/test/built-ins/Realm/name.js +++ b/test/built-ins/Realm/name.js @@ -17,8 +17,9 @@ includes: [propertyHelper.js] features: [callable-boundary-realms] ---*/ -assert.sameValue(Realm.name, "Realm", "The value of `Realm.name` is `'Realm'`"); - -verifyNotEnumerable(Realm, "name"); -verifyNotWritable(Realm, "name"); -verifyConfigurable(Realm, "name"); +verifyProperty(Realm, "name", { + value: "Realm", + enumerable: false, + writable: false, + configurable: true, +}); diff --git a/test/built-ins/Realm/prototype/evaluate/length.js b/test/built-ins/Realm/prototype/evaluate/length.js index f9f2b3226f..0e296ff4b7 100644 --- a/test/built-ins/Realm/prototype/evaluate/length.js +++ b/test/built-ins/Realm/prototype/evaluate/length.js @@ -20,8 +20,6 @@ includes: [propertyHelper.js] features: [callable-boundary-realms] ---*/ -assert.sameValue(Realm.prototype.evaluate.length, 1, "The value of `Realm.prototype.evaluate.length` is `1`"); - verifyProperty(Realm.prototype.evaluate, "length", { value: 1, enumerable: false,