diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Math/round')
-rw-r--r-- | js/src/tests/test262/built-ins/Math/round/length.js | 11 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/Math/round/name.js | 11 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/Math/round/not-a-constructor.js | 2 |
3 files changed, 13 insertions, 11 deletions
diff --git a/js/src/tests/test262/built-ins/Math/round/length.js b/js/src/tests/test262/built-ins/Math/round/length.js index 262c1ddebf..469492aa55 100644 --- a/js/src/tests/test262/built-ins/Math/round/length.js +++ b/js/src/tests/test262/built-ins/Math/round/length.js @@ -22,10 +22,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.round.length, 1); - -verifyNotEnumerable(Math.round, "length"); -verifyNotWritable(Math.round, "length"); -verifyConfigurable(Math.round, "length"); +verifyProperty(Math.round, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Math/round/name.js b/js/src/tests/test262/built-ins/Math/round/name.js index d1e21d7be4..5b6877e93e 100644 --- a/js/src/tests/test262/built-ins/Math/round/name.js +++ b/js/src/tests/test262/built-ins/Math/round/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.round.name, "round"); - -verifyNotEnumerable(Math.round, "name"); -verifyNotWritable(Math.round, "name"); -verifyConfigurable(Math.round, "name"); +verifyProperty(Math.round, "name", { + value: "round", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Math/round/not-a-constructor.js b/js/src/tests/test262/built-ins/Math/round/not-a-constructor.js index 45996875c4..9fbb4b5551 100644 --- a/js/src/tests/test262/built-ins/Math/round/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Math/round/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Math.round), false, 'isConstructor(Math.round) mu assert.throws(TypeError, () => { new Math.round(); -}, '`new Math.round()` throws TypeError'); +}); reportCompare(0, 0); |