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