Skip to content

Commit

Permalink
add TypedArray feature to all new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkot committed Mar 12, 2024
1 parent 4c743a9 commit 5112e08
Show file tree
Hide file tree
Showing 61 changed files with 61 additions and 61 deletions.
2 changes: 1 addition & 1 deletion test/built-ins/Uint8Array/fromBase64/alphabet.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/Uint8Array/fromBase64/descriptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/Uint8Array/fromBase64/ignores-receiver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/Uint8Array/fromBase64/illegal-characters.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/Uint8Array/fromBase64/length.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/Uint8Array/fromBase64/name.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/Uint8Array/fromBase64/nonconstructor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/Uint8Array/fromBase64/option-coercion.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/Uint8Array/fromBase64/results.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/Uint8Array/fromBase64/string-coercion.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/Uint8Array/fromBase64/whitespace.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/Uint8Array/fromHex/descriptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/Uint8Array/fromHex/ignores-receiver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/Uint8Array/fromHex/illegal-characters.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/Uint8Array/fromHex/length.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/Uint8Array/fromHex/name.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/Uint8Array/fromHex/nonconstructor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/Uint8Array/fromHex/odd-length-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/Uint8Array/fromHex/results.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/Uint8Array/fromHex/string-coercion.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/Uint8Array/prototype/setFromBase64/name.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/Uint8Array/prototype/setFromHex/length.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/Uint8Array/prototype/setFromHex/name.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/Uint8Array/prototype/setFromHex/results.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/Uint8Array/prototype/setFromHex/subarray.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 5112e08

Please sign in to comment.