diff options
author | Leo Balter <leonardo.balter@gmail.com> | 2018-03-08 09:21:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-08 09:21:09 -0500 |
commit | ccab9a18b0c5f3afa94237d9b89a65c4574384d4 (patch) | |
tree | 974615307ff88dff8cd59f326c4b9a67052cd3a6 /test/built-ins/TypedArrays/Float32Array/length.js | |
parent | 3af53b80871ab8f4585759d211bda5869e8fba01 (diff) | |
download | qtdeclarative-testsuites-ccab9a18b0c5f3afa94237d9b89a65c4574384d4.tar.gz |
Fix length prop tests for the TypedArrays ctors family (#1479)
Diffstat (limited to 'test/built-ins/TypedArrays/Float32Array/length.js')
-rw-r--r-- | test/built-ins/TypedArrays/Float32Array/length.js | 39 |
1 files changed, 18 insertions, 21 deletions
diff --git a/test/built-ins/TypedArrays/Float32Array/length.js b/test/built-ins/TypedArrays/Float32Array/length.js index 41d18dd60..7bcdb1576 100644 --- a/test/built-ins/TypedArrays/Float32Array/length.js +++ b/test/built-ins/TypedArrays/Float32Array/length.js @@ -2,30 +2,27 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -es6id: 22.2.5 -esid: sec-properties-of-the-typedarray-constructors -description: > - Float32Array.length is 3. +esid: sec-typedarray-constructors +description: Float32Array.length property descriptor info: | - Besides a length property (whose value is 3), [...]. + The TypedArray Constructors - 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. + The length property of the TypedArray constructor function is 3. - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. + 17 ECMAScript Standard Built-in Objects + + ... + + Unless otherwise specified, the length property of a built-in function + object has the attributes { [[Writable]]: false, [[Enumerable]]: false, + [[Configurable]]: true }. includes: [propertyHelper.js] -features: [TypedArray] +features: [BigInt] ---*/ -assert.sameValue(Float32Array.length, 3); - -verifyNotEnumerable(Float32Array, "length"); -verifyNotWritable(Float32Array, "length"); -verifyConfigurable(Float32Array, "length"); +verifyProperty(Float32Array, "length", { + value: 3, + writable: false, + enumerable: false, + configurable: true +}); |