diff options
author | unknown <v-yanlxu@exp-yanlxu-xa02.fareast.corp.microsoft.com> | 2015-08-03 18:20:24 +0800 |
---|---|---|
committer | unknown <v-yanlxu@exp-yanlxu-xa02.fareast.corp.microsoft.com> | 2015-08-03 18:20:24 +0800 |
commit | e3cf0acb1c0fa564f7e9b907fb17f913fadadf1f (patch) | |
tree | c9ba86fad6d453daa52f3f6cd1d16c597f070142 /test/built-ins/Array/from/Array.from_arity.js | |
parent | 258d2124ab44d210cb92e3211fd321337fba9525 (diff) | |
download | qtdeclarative-testsuites-e3cf0acb1c0fa564f7e9b907fb17f913fadadf1f.tar.gz |
update tests for Array.from
Diffstat (limited to 'test/built-ins/Array/from/Array.from_arity.js')
-rw-r--r-- | test/built-ins/Array/from/Array.from_arity.js | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/test/built-ins/Array/from/Array.from_arity.js b/test/built-ins/Array/from/Array.from_arity.js index 354f281ba..0e5ef26bf 100644 --- a/test/built-ins/Array/from/Array.from_arity.js +++ b/test/built-ins/Array/from/Array.from_arity.js @@ -4,9 +4,20 @@ /*--- es6id: 22.1.2.1 description: > - The Array.from() method creates a new Array instance - from an array-like or iterable object. - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from + The length property of the Array.from method is 1. + +info: > + + ES6 Section 17: + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js] ---*/ assert.sameValue(Array.from.length, 1); + +verifyNotEnumerable(Array.from, 'length'); +verifyNotWritable(Array.from, 'length'); +verifyConfigurable(Array.from, 'length'); |