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