diff options
Diffstat (limited to 'test/built-ins/TypedArrays')
-rw-r--r-- | test/built-ins/TypedArrays/BigInt64Array/length.js | 20 | ||||
-rw-r--r-- | test/built-ins/TypedArrays/BigUint64Array/length.js | 20 | ||||
-rw-r--r-- | test/built-ins/TypedArrays/Float32Array/length.js | 39 | ||||
-rw-r--r-- | test/built-ins/TypedArrays/Float64Array/length.js | 37 | ||||
-rw-r--r-- | test/built-ins/TypedArrays/Int16Array/length.js | 37 | ||||
-rw-r--r-- | test/built-ins/TypedArrays/Int32Array/length.js | 37 | ||||
-rw-r--r-- | test/built-ins/TypedArrays/Int8Array/length.js | 37 | ||||
-rw-r--r-- | test/built-ins/TypedArrays/Uint16Array/length.js | 37 | ||||
-rw-r--r-- | test/built-ins/TypedArrays/Uint32Array/length.js | 37 | ||||
-rw-r--r-- | test/built-ins/TypedArrays/Uint8Array/length.js | 37 | ||||
-rw-r--r-- | test/built-ins/TypedArrays/Uint8ClampedArray/length.js | 37 |
11 files changed, 166 insertions, 209 deletions
diff --git a/test/built-ins/TypedArrays/BigInt64Array/length.js b/test/built-ins/TypedArrays/BigInt64Array/length.js index dc35a38df..7d5adc764 100644 --- a/test/built-ins/TypedArrays/BigInt64Array/length.js +++ b/test/built-ins/TypedArrays/BigInt64Array/length.js @@ -5,27 +5,19 @@ esid: sec-typedarray-constructors description: BigInt64Array.length property descriptor info: | - 22.2.4 The TypedArray Constructors - - [...] + The TypedArray Constructors The length property of the TypedArray constructor function is 3. 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. Optional parameters - (which are indicated with brackets: [ ]) or rest parameters (which - are 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 }. + 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: [BigInt] +features: [BigInt, TypedArray] ---*/ verifyProperty(BigInt64Array, "length", { diff --git a/test/built-ins/TypedArrays/BigUint64Array/length.js b/test/built-ins/TypedArrays/BigUint64Array/length.js index 36f55a963..35128c687 100644 --- a/test/built-ins/TypedArrays/BigUint64Array/length.js +++ b/test/built-ins/TypedArrays/BigUint64Array/length.js @@ -5,27 +5,19 @@ esid: sec-typedarray-constructors description: BigUint64Array.length property descriptor info: | - 22.2.4 The TypedArray Constructors - - [...] + The TypedArray Constructors The length property of the TypedArray constructor function is 3. 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. Optional parameters - (which are indicated with brackets: [ ]) or rest parameters (which - are 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 }. + 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: [BigInt] +features: [BigInt, TypedArray] ---*/ verifyProperty(BigUint64Array, "length", { 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 +}); diff --git a/test/built-ins/TypedArrays/Float64Array/length.js b/test/built-ins/TypedArrays/Float64Array/length.js index 98bfb5fec..89300e68d 100644 --- a/test/built-ins/TypedArrays/Float64Array/length.js +++ b/test/built-ins/TypedArrays/Float64Array/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: > - Float64Array.length is 3. +esid: sec-typedarray-constructors +description: Float64Array.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] ---*/ -assert.sameValue(Float64Array.length, 3); - -verifyNotEnumerable(Float64Array, "length"); -verifyNotWritable(Float64Array, "length"); -verifyConfigurable(Float64Array, "length"); +verifyProperty(Float64Array, "length", { + value: 3, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArrays/Int16Array/length.js b/test/built-ins/TypedArrays/Int16Array/length.js index 95447e9f2..40c5391ee 100644 --- a/test/built-ins/TypedArrays/Int16Array/length.js +++ b/test/built-ins/TypedArrays/Int16Array/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: > - Int16Array.length is 3. +esid: sec-typedarray-constructors +description: Int16Array.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] ---*/ -assert.sameValue(Int16Array.length, 3); - -verifyNotEnumerable(Int16Array, "length"); -verifyNotWritable(Int16Array, "length"); -verifyConfigurable(Int16Array, "length"); +verifyProperty(Int16Array, "length", { + value: 3, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArrays/Int32Array/length.js b/test/built-ins/TypedArrays/Int32Array/length.js index 6821ea673..df2d8f54b 100644 --- a/test/built-ins/TypedArrays/Int32Array/length.js +++ b/test/built-ins/TypedArrays/Int32Array/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: > - Int32Array.length is 3. +esid: sec-typedarray-constructors +description: Int32Array.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] ---*/ -assert.sameValue(Int32Array.length, 3); - -verifyNotEnumerable(Int32Array, "length"); -verifyNotWritable(Int32Array, "length"); -verifyConfigurable(Int32Array, "length"); +verifyProperty(Int32Array, "length", { + value: 3, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArrays/Int8Array/length.js b/test/built-ins/TypedArrays/Int8Array/length.js index 0cd4836c6..35d0f7d2e 100644 --- a/test/built-ins/TypedArrays/Int8Array/length.js +++ b/test/built-ins/TypedArrays/Int8Array/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: > - Int8Array.length is 3. +esid: sec-typedarray-constructors +description: Int8Array.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] ---*/ -assert.sameValue(Int8Array.length, 3); - -verifyNotEnumerable(Int8Array, "length"); -verifyNotWritable(Int8Array, "length"); -verifyConfigurable(Int8Array, "length"); +verifyProperty(Int8Array, "length", { + value: 3, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArrays/Uint16Array/length.js b/test/built-ins/TypedArrays/Uint16Array/length.js index 30061f817..b95ede139 100644 --- a/test/built-ins/TypedArrays/Uint16Array/length.js +++ b/test/built-ins/TypedArrays/Uint16Array/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: > - Uint16Array.length is 3. +esid: sec-typedarray-constructors +description: Uint16Array.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] ---*/ -assert.sameValue(Uint16Array.length, 3); - -verifyNotEnumerable(Uint16Array, "length"); -verifyNotWritable(Uint16Array, "length"); -verifyConfigurable(Uint16Array, "length"); +verifyProperty(Uint16Array, "length", { + value: 3, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArrays/Uint32Array/length.js b/test/built-ins/TypedArrays/Uint32Array/length.js index 99bb6344f..c10cd13dc 100644 --- a/test/built-ins/TypedArrays/Uint32Array/length.js +++ b/test/built-ins/TypedArrays/Uint32Array/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: > - Uint32Array.length is 3. +esid: sec-typedarray-constructors +description: Uint32Array.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] ---*/ -assert.sameValue(Uint32Array.length, 3); - -verifyNotEnumerable(Uint32Array, "length"); -verifyNotWritable(Uint32Array, "length"); -verifyConfigurable(Uint32Array, "length"); +verifyProperty(Uint32Array, "length", { + value: 3, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArrays/Uint8Array/length.js b/test/built-ins/TypedArrays/Uint8Array/length.js index dcf71bf7b..22a4ab6b9 100644 --- a/test/built-ins/TypedArrays/Uint8Array/length.js +++ b/test/built-ins/TypedArrays/Uint8Array/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: > - Uint8Array.length is 3. +esid: sec-typedarray-constructors +description: Uint8Array.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] ---*/ -assert.sameValue(Uint8Array.length, 3); - -verifyNotEnumerable(Uint8Array, "length"); -verifyNotWritable(Uint8Array, "length"); -verifyConfigurable(Uint8Array, "length"); +verifyProperty(Uint8Array, "length", { + value: 3, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArrays/Uint8ClampedArray/length.js b/test/built-ins/TypedArrays/Uint8ClampedArray/length.js index 3a0314d64..586d472ce 100644 --- a/test/built-ins/TypedArrays/Uint8ClampedArray/length.js +++ b/test/built-ins/TypedArrays/Uint8ClampedArray/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: > - Uint8ClampedArray.length is 3. +esid: sec-typedarray-constructors +description: Uint8ClampedArray.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] ---*/ -assert.sameValue(Uint8ClampedArray.length, 3); - -verifyNotEnumerable(Uint8ClampedArray, "length"); -verifyNotWritable(Uint8ClampedArray, "length"); -verifyConfigurable(Uint8ClampedArray, "length"); +verifyProperty(Uint8ClampedArray, "length", { + value: 3, + writable: false, + enumerable: false, + configurable: true +}); |