summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/from/Array.from_arity.js
diff options
context:
space:
mode:
authorunknown <v-yanlxu@exp-yanlxu-xa02.fareast.corp.microsoft.com>2015-08-03 18:20:24 +0800
committerunknown <v-yanlxu@exp-yanlxu-xa02.fareast.corp.microsoft.com>2015-08-03 18:20:24 +0800
commite3cf0acb1c0fa564f7e9b907fb17f913fadadf1f (patch)
treec9ba86fad6d453daa52f3f6cd1d16c597f070142 /test/built-ins/Array/from/Array.from_arity.js
parent258d2124ab44d210cb92e3211fd321337fba9525 (diff)
downloadqtdeclarative-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.js17
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');