diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2018-02-15 18:03:39 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-15 18:03:39 -0500 |
commit | 7024f3fa11e7e5169c4d42fc8ee7de3e93f7de9d (patch) | |
tree | f2f7a2758bade35564399fad33fd8cb9fa98580f /test/built-ins/TypedArray/prototype/some/BigInt/length.js | |
parent | afa24856b4b9bc00315b3e47745187d33c471406 (diff) | |
parent | 857f1d429b939c6feef1951041b5c91c9f3a8b4a (diff) | |
download | qtdeclarative-testsuites-7024f3fa11e7e5169c4d42fc8ee7de3e93f7de9d.tar.gz |
Merge pull request #1413 from leobalter/cxielarko-bigint-ta-3
BigInt+TypedArray tests, splitted
Diffstat (limited to 'test/built-ins/TypedArray/prototype/some/BigInt/length.js')
-rw-r--r-- | test/built-ins/TypedArray/prototype/some/BigInt/length.js | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/built-ins/TypedArray/prototype/some/BigInt/length.js b/test/built-ins/TypedArray/prototype/some/BigInt/length.js new file mode 100644 index 000000000..ee214df0f --- /dev/null +++ b/test/built-ins/TypedArray/prototype/some/BigInt/length.js @@ -0,0 +1,30 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-%typedarray%.prototype.some +description: > + %TypedArray%.prototype.some.length is 1. +info: | + %TypedArray%.prototype.some ( callbackfn [ , thisArg ] ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, has a length + property whose value is an integer. Unless otherwise specified, this + value is equal to the largest number of named arguments shown in the + subclause headings for the function description, including optional + parameters. However, rest parameters shown using the form “...name” + are not included in the default argument count. + + Unless otherwise specified, the length property of a built-in Function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. +includes: [propertyHelper.js, testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +assert.sameValue(TypedArray.prototype.some.length, 1); + +verifyNotEnumerable(TypedArray.prototype.some, "length"); +verifyNotWritable(TypedArray.prototype.some, "length"); +verifyConfigurable(TypedArray.prototype.some, "length"); |