Correct tests and improve documentation

This commit is contained in:
Mike Pennisi 2021-07-27 12:45:38 -04:00 committed by Rick Waldron
parent 375cf1a40c
commit 8428e70367
23 changed files with 92 additions and 23 deletions

View File

@ -40,7 +40,10 @@ testWithTypedArrayConstructors(TA => {
var expectedError;
try {
ab.resize(BPE * 3);
ab.resize(BPE * 2);
// If the preceding "resize" operation is successful, the typed array will
// be out out of bounds, so the subsequent prototype method should produce
// a TypeError due to the semantics of ValidateTypedArray.
expectedError = TypeError;
} catch (_) {
// The host is permitted to fail any "resize" operation at its own

View File

@ -40,7 +40,10 @@ testWithTypedArrayConstructors(TA => {
var expectedError;
try {
ab.resize(BPE * 3);
ab.resize(BPE * 2);
// If the preceding "resize" operation is successful, the typed array will
// be out out of bounds, so the subsequent prototype method should produce
// a TypeError due to the semantics of ValidateTypedArray.
expectedError = TypeError;
} catch (_) {
// The host is permitted to fail any "resize" operation at its own

View File

@ -40,7 +40,10 @@ testWithTypedArrayConstructors(TA => {
var expectedError;
try {
ab.resize(BPE * 3);
ab.resize(BPE * 2);
// If the preceding "resize" operation is successful, the typed array will
// be out out of bounds, so the subsequent prototype method should produce
// a TypeError due to the semantics of ValidateTypedArray.
expectedError = TypeError;
} catch (_) {
// The host is permitted to fail any "resize" operation at its own

View File

@ -40,7 +40,10 @@ testWithTypedArrayConstructors(TA => {
var expectedError;
try {
ab.resize(BPE * 3);
ab.resize(BPE * 2);
// If the preceding "resize" operation is successful, the typed array will
// be out out of bounds, so the subsequent prototype method should produce
// a TypeError due to the semantics of ValidateTypedArray.
expectedError = TypeError;
} catch (_) {
// The host is permitted to fail any "resize" operation at its own

View File

@ -40,7 +40,10 @@ testWithTypedArrayConstructors(TA => {
var expectedError;
try {
ab.resize(BPE * 3);
ab.resize(BPE * 2);
// If the preceding "resize" operation is successful, the typed array will
// be out out of bounds, so the subsequent prototype method should produce
// a TypeError due to the semantics of ValidateTypedArray.
expectedError = TypeError;
} catch (_) {
// The host is permitted to fail any "resize" operation at its own

View File

@ -40,7 +40,10 @@ testWithTypedArrayConstructors(TA => {
var expectedError;
try {
ab.resize(BPE * 3);
ab.resize(BPE * 2);
// If the preceding "resize" operation is successful, the typed array will
// be out out of bounds, so the subsequent prototype method should produce
// a TypeError due to the semantics of ValidateTypedArray.
expectedError = TypeError;
} catch (_) {
// The host is permitted to fail any "resize" operation at its own

View File

@ -40,7 +40,10 @@ testWithTypedArrayConstructors(TA => {
var expectedError;
try {
ab.resize(BPE * 3);
ab.resize(BPE * 2);
// If the preceding "resize" operation is successful, the typed array will
// be out out of bounds, so the subsequent prototype method should produce
// a TypeError due to the semantics of ValidateTypedArray.
expectedError = TypeError;
} catch (_) {
// The host is permitted to fail any "resize" operation at its own

View File

@ -40,7 +40,10 @@ testWithTypedArrayConstructors(TA => {
var expectedError;
try {
ab.resize(BPE * 3);
ab.resize(BPE * 2);
// If the preceding "resize" operation is successful, the typed array will
// be out out of bounds, so the subsequent prototype method should produce
// a TypeError due to the semantics of ValidateTypedArray.
expectedError = TypeError;
} catch (_) {
// The host is permitted to fail any "resize" operation at its own

View File

@ -40,7 +40,10 @@ testWithTypedArrayConstructors(TA => {
var expectedError;
try {
ab.resize(BPE * 3);
ab.resize(BPE * 2);
// If the preceding "resize" operation is successful, the typed array will
// be out out of bounds, so the subsequent prototype method should produce
// a TypeError due to the semantics of ValidateTypedArray.
expectedError = TypeError;
} catch (_) {
// The host is permitted to fail any "resize" operation at its own

View File

@ -40,7 +40,10 @@ testWithTypedArrayConstructors(TA => {
var expectedError;
try {
ab.resize(BPE * 3);
ab.resize(BPE * 2);
// If the preceding "resize" operation is successful, the typed array will
// be out out of bounds, so the subsequent prototype method should produce
// a TypeError due to the semantics of ValidateTypedArray.
expectedError = TypeError;
} catch (_) {
// The host is permitted to fail any "resize" operation at its own

View File

@ -40,7 +40,10 @@ testWithTypedArrayConstructors(TA => {
var expectedError;
try {
ab.resize(BPE * 3);
ab.resize(BPE * 2);
// If the preceding "resize" operation is successful, the typed array will
// be out out of bounds, so the subsequent prototype method should produce
// a TypeError due to the semantics of ValidateTypedArray.
expectedError = TypeError;
} catch (_) {
// The host is permitted to fail any "resize" operation at its own

View File

@ -40,7 +40,10 @@ testWithTypedArrayConstructors(TA => {
var expectedError;
try {
ab.resize(BPE * 3);
ab.resize(BPE * 2);
// If the preceding "resize" operation is successful, the typed array will
// be out out of bounds, so the subsequent prototype method should produce
// a TypeError due to the semantics of ValidateTypedArray.
expectedError = TypeError;
} catch (_) {
// The host is permitted to fail any "resize" operation at its own

View File

@ -40,7 +40,10 @@ testWithTypedArrayConstructors(TA => {
var expectedError;
try {
ab.resize(BPE * 3);
ab.resize(BPE * 2);
// If the preceding "resize" operation is successful, the typed array will
// be out out of bounds, so the subsequent prototype method should produce
// a TypeError due to the semantics of ValidateTypedArray.
expectedError = TypeError;
} catch (_) {
// The host is permitted to fail any "resize" operation at its own

View File

@ -40,7 +40,10 @@ testWithTypedArrayConstructors(TA => {
var expectedError;
try {
ab.resize(BPE * 3);
ab.resize(BPE * 2);
// If the preceding "resize" operation is successful, the typed array will
// be out out of bounds, so the subsequent prototype method should produce
// a TypeError due to the semantics of ValidateTypedArray.
expectedError = TypeError;
} catch (_) {
// The host is permitted to fail any "resize" operation at its own

View File

@ -40,7 +40,10 @@ testWithTypedArrayConstructors(TA => {
var expectedError;
try {
ab.resize(BPE * 3);
ab.resize(BPE * 2);
// If the preceding "resize" operation is successful, the typed array will
// be out out of bounds, so the subsequent prototype method should produce
// a TypeError due to the semantics of ValidateTypedArray.
expectedError = TypeError;
} catch (_) {
// The host is permitted to fail any "resize" operation at its own

View File

@ -40,7 +40,10 @@ testWithTypedArrayConstructors(TA => {
var expectedError;
try {
ab.resize(BPE * 3);
ab.resize(BPE * 2);
// If the preceding "resize" operation is successful, the typed array will
// be out out of bounds, so the subsequent prototype method should produce
// a TypeError due to the semantics of ValidateTypedArray.
expectedError = TypeError;
} catch (_) {
// The host is permitted to fail any "resize" operation at its own

View File

@ -40,7 +40,10 @@ testWithTypedArrayConstructors(TA => {
var expectedError;
try {
ab.resize(BPE * 3);
ab.resize(BPE * 2);
// If the preceding "resize" operation is successful, the typed array will
// be out out of bounds, so the subsequent prototype method should produce
// a TypeError due to the semantics of ValidateTypedArray.
expectedError = TypeError;
} catch (_) {
// The host is permitted to fail any "resize" operation at its own

View File

@ -40,7 +40,10 @@ testWithTypedArrayConstructors(TA => {
var expectedError;
try {
ab.resize(BPE * 3);
ab.resize(BPE * 2);
// If the preceding "resize" operation is successful, the typed array will
// be out out of bounds, so the subsequent prototype method should produce
// a TypeError due to the semantics of ValidateTypedArray.
expectedError = TypeError;
} catch (_) {
// The host is permitted to fail any "resize" operation at its own

View File

@ -40,7 +40,10 @@ testWithTypedArrayConstructors(TA => {
var expectedError;
try {
ab.resize(BPE * 3);
ab.resize(BPE * 2);
// If the preceding "resize" operation is successful, the typed array will
// be out out of bounds, so the subsequent prototype method should produce
// a TypeError due to the semantics of ValidateTypedArray.
expectedError = TypeError;
} catch (_) {
// The host is permitted to fail any "resize" operation at its own

View File

@ -40,7 +40,10 @@ testWithTypedArrayConstructors(TA => {
var expectedError;
try {
ab.resize(BPE * 3);
ab.resize(BPE * 2);
// If the preceding "resize" operation is successful, the typed array will
// be out out of bounds, so the subsequent prototype method should produce
// a TypeError due to the semantics of ValidateTypedArray.
expectedError = TypeError;
} catch (_) {
// The host is permitted to fail any "resize" operation at its own

View File

@ -40,7 +40,10 @@ testWithTypedArrayConstructors(TA => {
var expectedError;
try {
ab.resize(BPE * 3);
ab.resize(BPE * 2);
// If the preceding "resize" operation is successful, the typed array will
// be out out of bounds, so the subsequent prototype method should produce
// a TypeError due to the semantics of ValidateTypedArray.
expectedError = TypeError;
} catch (_) {
// The host is permitted to fail any "resize" operation at its own

View File

@ -40,7 +40,10 @@ testWithTypedArrayConstructors(TA => {
var expectedError;
try {
ab.resize(BPE * 3);
ab.resize(BPE * 2);
// If the preceding "resize" operation is successful, the typed array will
// be out out of bounds, so the subsequent prototype method should produce
// a TypeError due to the semantics of ValidateTypedArray.
expectedError = TypeError;
} catch (_) {
// The host is permitted to fail any "resize" operation at its own

View File

@ -40,7 +40,10 @@ testWithTypedArrayConstructors(TA => {
var expectedError;
try {
ab.resize(BPE * 3);
ab.resize(BPE * 2);
// If the preceding "resize" operation is successful, the typed array will
// be out out of bounds, so the subsequent prototype method should produce
// a TypeError due to the semantics of ValidateTypedArray.
expectedError = TypeError;
} catch (_) {
// The host is permitted to fail any "resize" operation at its own