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