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