add TypedArray feature to all new tests

This commit is contained in:
Kevin Gibbons 2024-03-11 22:59:56 -07:00 committed by Jordan Harband
parent 080c5490a2
commit 5132804523
No known key found for this signature in database
GPG Key ID: 9F6A681E35EF8B56
61 changed files with 61 additions and 61 deletions

View File

@ -4,7 +4,7 @@
esid: sec-uint8array.frombase64
description: Conversion of base64 strings to Uint8Arrays exercising the alphabet option
includes: [compareArray.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
assert.compareArray(Uint8Array.fromBase64('x+/y'), [199, 239, 242]);

View File

@ -5,7 +5,7 @@ esid: sec-uint8array.frombase64
description: >
Uint8Array.fromBase64 has default data property attributes.
includes: [propertyHelper.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
verifyProperty(Uint8Array, 'fromBase64', {

View File

@ -3,7 +3,7 @@
/*---
esid: sec-uint8array.frombase64
description: Uint8Array.fromBase64 ignores its receiver
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
var fromBase64 = Uint8Array.fromBase64;

View File

@ -3,7 +3,7 @@
/*---
esid: sec-uint8array.frombase64
description: Uint8Array.fromBase64 throws a SyntaxError when input has non-base64, non-ascii-whitespace characters
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
var illegal = [

View File

@ -4,7 +4,7 @@
esid: sec-uint8array.frombase64
description: Handling of final chunks in Uint8Array.fromBase64
includes: [compareArray.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
// padding

View File

@ -5,7 +5,7 @@ esid: sec-uint8array.frombase64
description: >
Uint8Array.fromBase64.length is 1.
includes: [propertyHelper.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
verifyProperty(Uint8Array.fromBase64, 'length', {

View File

@ -5,7 +5,7 @@ esid: sec-uint8array.frombase64
description: >
Uint8Array.fromBase64.name is "fromBase64".
includes: [propertyHelper.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
verifyProperty(Uint8Array.fromBase64, 'name', {

View File

@ -5,7 +5,7 @@ esid: sec-uint8array.frombase64
description: >
Uint8Array.fromBase64 is not a constructor function.
includes: [isConstructor.js]
features: [uint8array-base64, Reflect.construct]
features: [uint8array-base64, TypedArray, Reflect.construct]
---*/
assert(!isConstructor(Uint8Array.fromBase64), "Uint8Array.fromBase64 is not a constructor");

View File

@ -4,7 +4,7 @@
esid: sec-uint8array.frombase64
description: Uint8Array.fromBase64 triggers effects of the "alphabet" and "lastChunkHandling" getters, but does not perform toString on the results
includes: [compareArray.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
assert.throws(TypeError, function() {

View File

@ -4,7 +4,7 @@
esid: sec-uint8array.frombase64
description: Conversion of base64 strings to Uint8Arrays
includes: [compareArray.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
// standard test vectors from https://datatracker.ietf.org/doc/html/rfc4648#section-10

View File

@ -3,7 +3,7 @@
/*---
esid: sec-uint8array.frombase64
description: Uint8Array.fromBase64 throws if its argument is not a string
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
var toStringCalls = 0;

View File

@ -4,7 +4,7 @@
esid: sec-uint8array.frombase64
description: Uint8Array.fromBase64 ignores ASCII whitespace in the input
includes: [compareArray.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
var whitespaceKinds = [

View File

@ -5,7 +5,7 @@ esid: sec-uint8array.fromhex
description: >
Uint8Array.fromHex has default data property attributes.
includes: [propertyHelper.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
verifyProperty(Uint8Array, 'fromHex', {

View File

@ -3,7 +3,7 @@
/*---
esid: sec-uint8array.fromhex
description: Uint8Array.fromHex ignores its receiver
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
var fromHex = Uint8Array.fromHex;

View File

@ -3,7 +3,7 @@
/*---
esid: sec-uint8array.fromhex
description: Uint8Array.fromHex throws a SyntaxError when input has non-hex characters
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
var illegal = [

View File

@ -5,7 +5,7 @@ esid: sec-uint8array.fromhex
description: >
Uint8Array.fromHex.length is 1.
includes: [propertyHelper.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
verifyProperty(Uint8Array.fromHex, 'length', {

View File

@ -5,7 +5,7 @@ esid: sec-uint8array.fromhex
description: >
Uint8Array.fromHex.name is "fromHex".
includes: [propertyHelper.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
verifyProperty(Uint8Array.fromHex, 'name', {

View File

@ -5,7 +5,7 @@ esid: sec-uint8array.fromhex
description: >
Uint8Array.fromHex is not a constructor function.
includes: [isConstructor.js]
features: [uint8array-base64, Reflect.construct]
features: [uint8array-base64, TypedArray, Reflect.construct]
---*/
assert(!isConstructor(Uint8Array.fromHex), "Uint8Array.fromHex is not a constructor");

View File

@ -3,7 +3,7 @@
/*---
esid: sec-uint8array.fromhex
description: Uint8Array.fromHex throws if given an odd number of input hex characters
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
assert.throws(SyntaxError, function() {

View File

@ -4,7 +4,7 @@
esid: sec-uint8array.fromhex
description: Conversion of hex strings to Uint8Arrays
includes: [compareArray.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
var cases = [

View File

@ -3,7 +3,7 @@
/*---
esid: sec-uint8array.fromhex
description: Uint8Array.fromHex throws if its argument is not a string
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
var toStringCalls = 0;

View File

@ -4,7 +4,7 @@
esid: sec-uint8array.prototype.setfrombase64
description: Conversion of base64 strings to Uint8Arrays exercising the alphabet option
includes: [compareArray.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
var target = new Uint8Array([255, 255, 255, 255]);

View File

@ -5,7 +5,7 @@ esid: sec-uint8array.prototype.setfrombase64
description: >
Uint8Array.prototype.setFromBase64 has default data property attributes.
includes: [propertyHelper.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
verifyProperty(Uint8Array.prototype, 'setFromBase64', {

View File

@ -4,7 +4,7 @@
esid: sec-uint8array.prototype.setfrombase64
description: Uint8Array.prototype.setFromBase64 throws on detatched buffers
includes: [detachArrayBuffer.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
var target = new Uint8Array([255, 255, 255]);

View File

@ -3,7 +3,7 @@
/*---
esid: sec-uint8array.prototype.setfrombase64
description: Uint8Array.prototype.setFromBase64 throws a SyntaxError when input has non-base64, non-ascii-whitespace characters
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
var illegal = [

View File

@ -4,7 +4,7 @@
esid: sec-uint8array.prototype.setfrombase64
description: Handling of final chunks in target.setFromBase64
includes: [compareArray.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
// padding

View File

@ -5,7 +5,7 @@ esid: sec-uint8array.prototype.setfrombase64
description: >
Uint8Array.prototype.setFromBase64.length is 1.
includes: [propertyHelper.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
verifyProperty(Uint8Array.prototype.setFromBase64, 'length', {

View File

@ -5,7 +5,7 @@ esid: sec-uint8array.prototype.setfrombase64
description: >
Uint8Array.prototype.setFromBase64.name is "setFromBase64".
includes: [propertyHelper.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
verifyProperty(Uint8Array.prototype.setFromBase64, 'name', {

View File

@ -5,7 +5,7 @@ esid: sec-uint8array.prototype.setfrombase64
description: >
Uint8Array.prototype.setFromBase64 is not a constructor function.
includes: [isConstructor.js]
features: [uint8array-base64, Reflect.construct]
features: [uint8array-base64, TypedArray, Reflect.construct]
---*/
assert(!isConstructor(Uint8Array.prototype.setFromBase64), "Uint8Array.prototype.setFromBase64 is not a constructor");

View File

@ -4,7 +4,7 @@
esid: sec-uint8array.prototype.setfrombase64
description: Uint8Array.prototype.setFromBase64 triggers effects of the "alphabet" and "lastChunkHandling" getters, but does not perform toString on the results
includes: [compareArray.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
assert.throws(TypeError, function() {

View File

@ -4,7 +4,7 @@
esid: sec-uint8array.prototype.setfrombase64
description: Conversion of base64 strings to Uint8Arrays
includes: [compareArray.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
// standard test vectors from https://datatracker.ietf.org/doc/html/rfc4648#section-10

View File

@ -3,7 +3,7 @@
/*---
esid: sec-uint8array.prototype.setfrombase64
description: Uint8Array.prototype.setFromBase64 throws if its first argument is not a string
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
var toStringCalls = 0;

View File

@ -4,7 +4,7 @@
esid: sec-uint8array.prototype.setfrombase64
description: Uint8Array.prototype.setFromBase64 takes into account the offset of the target Uint8Array
includes: [compareArray.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
var base = new Uint8Array([255, 255, 255, 255, 255, 255, 255]);

View File

@ -4,7 +4,7 @@
esid: sec-uint8array.prototype.setfrombase64
description: Uint8Array.prototype.setFromBase64 behavior when target buffer is small
includes: [compareArray.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
// buffer too small

View File

@ -4,7 +4,7 @@
esid: sec-uint8array.prototype.setfrombase64
description: Uint8Array.prototype.setFromBase64 ignores ASCII whitespace in the input
includes: [compareArray.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
var whitespaceKinds = [

View File

@ -5,7 +5,7 @@ esid: sec-uint8array.prototype.setfromhex
description: >
Uint8Array.prototype.setFromHex has default data property attributes.
includes: [propertyHelper.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
verifyProperty(Uint8Array.prototype, 'setFromHex', {

View File

@ -4,7 +4,7 @@
esid: sec-uint8array.prototype.setfromhex
description: Uint8Array.prototype.setFromHex throws on detatched buffers
includes: [detachArrayBuffer.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
var target = new Uint8Array([255, 255, 255]);

View File

@ -3,7 +3,7 @@
/*---
esid: sec-uint8array.prototype.setfromhex
description: Uint8Array.prototype.setFromHex throws a SyntaxError when input has non-hex characters
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
var illegal = [

View File

@ -5,7 +5,7 @@ esid: sec-uint8array.prototype.setfromhex
description: >
Uint8Array.prototype.setFromHex.length is 1.
includes: [propertyHelper.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
verifyProperty(Uint8Array.prototype.setFromHex, 'length', {

View File

@ -5,7 +5,7 @@ esid: sec-uint8array.prototype.setfromhex
description: >
Uint8Array.prototype.setFromHex.name is "setFromHex".
includes: [propertyHelper.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
verifyProperty(Uint8Array.prototype.setFromHex, 'name', {

View File

@ -5,7 +5,7 @@ esid: sec-uint8array.prototype.setfromhex
description: >
Uint8Array.prototype.setFromHex is not a constructor function.
includes: [isConstructor.js]
features: [uint8array-base64, Reflect.construct]
features: [uint8array-base64, TypedArray, Reflect.construct]
---*/
assert(!isConstructor(Uint8Array.prototype.setFromHex), "target.setFromHex is not a constructor");

View File

@ -4,7 +4,7 @@
esid: sec-uint8array.prototype.setfromhex
description: Conversion of hex strings to Uint8Arrays
includes: [compareArray.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
var cases = [

View File

@ -3,7 +3,7 @@
/*---
esid: sec-uint8array.prototype.setfromhex
description: Uint8Array.prototype.setFromHex throws if its first argument is not a string
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
var toStringCalls = 0;

View File

@ -4,7 +4,7 @@
esid: sec-uint8array.prototype.setfromhex
description: Uint8Array.prototype.setFromHex takes into account the offset of the target Uint8Array
includes: [compareArray.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
var base = new Uint8Array([255, 255, 255, 255, 255, 255, 255]);

View File

@ -4,7 +4,7 @@
esid: sec-uint8array.prototype.setfromhex
description: Uint8Array.prototype.setFromHex behavior when target buffer is small
includes: [compareArray.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
// buffer too small

View File

@ -3,7 +3,7 @@
/*---
esid: sec-uint8array.prototype.tobase64
description: Conversion of Uint8Arrays to base64 strings exercising the alphabet option
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
assert.sameValue((new Uint8Array([199, 239, 242])).toBase64(), "x+/y");

View File

@ -5,7 +5,7 @@ esid: sec-uint8array.prototype.tobase64
description: >
Uint8Array.prototype.toBase64 has default data property attributes.
includes: [propertyHelper.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
verifyProperty(Uint8Array.prototype, 'toBase64', {

View File

@ -4,7 +4,7 @@
esid: sec-uint8array.prototype.tobase64
description: Uint8Array.prototype.toBase64 checks for detachedness after side-effects are finished
includes: [detachArrayBuffer.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
var array = new Uint8Array(2);

View File

@ -5,7 +5,7 @@ esid: sec-uint8array.prototype.tobase64
description: >
Uint8Array.prototype.toBase64.length is 0.
includes: [propertyHelper.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
verifyProperty(Uint8Array.prototype.toBase64, 'length', {

View File

@ -5,7 +5,7 @@ esid: sec-uint8array.prototype.tobase64
description: >
Uint8Array.prototype.toBase64.name is "toBase64".
includes: [propertyHelper.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
verifyProperty(Uint8Array.prototype.toBase64, 'name', {

View File

@ -5,7 +5,7 @@ esid: sec-uint8array.prototype.tobase64
description: >
Uint8Array.prototype.toBase64 is not a constructor function.
includes: [isConstructor.js]
features: [uint8array-base64, Reflect.construct]
features: [uint8array-base64, TypedArray, Reflect.construct]
---*/
assert(!isConstructor(Uint8Array.prototype.toBase64), "Uint8Array.prototype.toBase64 is not a constructor");

View File

@ -3,7 +3,7 @@
/*---
esid: sec-uint8array.prototype.tobase64
description: Uint8Array.prototype.toBase64 triggers effects of the "alphabet" getter, but does not perform toString on the result
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
assert.throws(TypeError, function() {

View File

@ -4,7 +4,7 @@
esid: sec-uint8array.prototype.tobase64
description: Uint8Array.prototype.toBase64 throws if the receiver is not a Uint8Array
includes: [testTypedArray.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
var toBase64 = Uint8Array.prototype.toBase64;

View File

@ -3,7 +3,7 @@
/*---
esid: sec-uint8array.prototype.tobase64
description: Conversion of Uint8Arrays to base64 strings
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
// standard test vectors from https://datatracker.ietf.org/doc/html/rfc4648#section-10

View File

@ -5,7 +5,7 @@ esid: sec-uint8array.prototype.tohex
description: >
Uint8Array.prototype.toHex has default data property attributes.
includes: [propertyHelper.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
verifyProperty(Uint8Array.prototype, 'toHex', {

View File

@ -4,7 +4,7 @@
esid: sec-uint8array.prototype.tohex
description: Uint8Array.prototype.toHex throws if called on a detached buffer
includes: [detachArrayBuffer.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
var array = new Uint8Array(2);

View File

@ -5,7 +5,7 @@ esid: sec-uint8array.prototype.tohex
description: >
Uint8Array.prototype.toHex.length is 0.
includes: [propertyHelper.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
verifyProperty(Uint8Array.prototype.toHex, 'length', {

View File

@ -5,7 +5,7 @@ esid: sec-uint8array.prototype.tohex
description: >
Uint8Array.prototype.toHex.name is "toHex".
includes: [propertyHelper.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
verifyProperty(Uint8Array.prototype.toHex, 'name', {

View File

@ -5,7 +5,7 @@ esid: sec-uint8array.prototype.tohex
description: >
Uint8Array.prototype.toHex is not a constructor function.
includes: [isConstructor.js]
features: [uint8array-base64, Reflect.construct]
features: [uint8array-base64, TypedArray, Reflect.construct]
---*/
assert(!isConstructor(Uint8Array.prototype.toHex), "Uint8Array.prototype.toHex is not a constructor");

View File

@ -4,7 +4,7 @@
esid: sec-uint8array.prototype.tohex
description: Uint8Array.prototype.toHex throws if the receiver is not a Uint8Array
includes: [testTypedArray.js]
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
var toHex = Uint8Array.prototype.toHex;

View File

@ -3,7 +3,7 @@
/*---
esid: sec-uint8array.prototype.tohex
description: Conversion of Uint8Arrays to hex strings
features: [uint8array-base64]
features: [uint8array-base64, TypedArray]
---*/
assert.sameValue((new Uint8Array([])).toHex(), "");