mirror of https://github.com/tc39/test262.git
Correct tests and improve documentation
This commit is contained in:
parent
375cf1a40c
commit
8428e70367
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue