diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Array/from')
-rw-r--r-- | js/src/tests/test262/built-ins/Array/from/Array.from-name.js | 15 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/Array/from/Array.from_arity.js | 11 |
2 files changed, 12 insertions, 14 deletions
diff --git a/js/src/tests/test262/built-ins/Array/from/Array.from-name.js b/js/src/tests/test262/built-ins/Array/from/Array.from-name.js index 267647c639..7aecd2cb32 100644 --- a/js/src/tests/test262/built-ins/Array/from/Array.from-name.js +++ b/js/src/tests/test262/built-ins/Array/from/Array.from-name.js @@ -19,14 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Array.from.name, - 'from', - 'The value of Array.from.name is expected to be "from"' -); - -verifyNotEnumerable(Array.from, 'name'); -verifyNotWritable(Array.from, 'name'); -verifyConfigurable(Array.from, 'name'); +verifyProperty(Array.from, "name", { + value: "from", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Array/from/Array.from_arity.js b/js/src/tests/test262/built-ins/Array/from/Array.from_arity.js index 68b3287765..9442265a5e 100644 --- a/js/src/tests/test262/built-ins/Array/from/Array.from_arity.js +++ b/js/src/tests/test262/built-ins/Array/from/Array.from_arity.js @@ -14,10 +14,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.from.length, 1, 'The value of Array.from.length is expected to be 1'); - -verifyNotEnumerable(Array.from, 'length'); -verifyNotWritable(Array.from, 'length'); -verifyConfigurable(Array.from, 'length'); +verifyProperty(Array.from, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); |