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