diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Math/sign')
-rw-r--r-- | js/src/tests/test262/built-ins/Math/sign/length.js | 11 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/Math/sign/name.js | 11 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/Math/sign/not-a-constructor.js | 2 |
3 files changed, 13 insertions, 11 deletions
diff --git a/js/src/tests/test262/built-ins/Math/sign/length.js b/js/src/tests/test262/built-ins/Math/sign/length.js index 2d172bfaaa..f9beec1cec 100644 --- a/js/src/tests/test262/built-ins/Math/sign/length.js +++ b/js/src/tests/test262/built-ins/Math/sign/length.js @@ -18,10 +18,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.sign.length, 1); - -verifyNotEnumerable(Math.sign, "length"); -verifyNotWritable(Math.sign, "length"); -verifyConfigurable(Math.sign, "length"); +verifyProperty(Math.sign, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Math/sign/name.js b/js/src/tests/test262/built-ins/Math/sign/name.js index f706d18562..40aa1cc520 100644 --- a/js/src/tests/test262/built-ins/Math/sign/name.js +++ b/js/src/tests/test262/built-ins/Math/sign/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.sign.name, "sign"); - -verifyNotEnumerable(Math.sign, "name"); -verifyNotWritable(Math.sign, "name"); -verifyConfigurable(Math.sign, "name"); +verifyProperty(Math.sign, "name", { + value: "sign", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Math/sign/not-a-constructor.js b/js/src/tests/test262/built-ins/Math/sign/not-a-constructor.js index 73a8f9f7d9..767ea490d7 100644 --- a/js/src/tests/test262/built-ins/Math/sign/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Math/sign/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Math.sign), false, 'isConstructor(Math.sign) must assert.throws(TypeError, () => { new Math.sign(); -}, '`new Math.sign()` throws TypeError'); +}); reportCompare(0, 0); |