s/interaction/iteration on TypedArray.prototype methods

This commit is contained in:
Leonardo Balter 2016-05-02 13:55:45 -04:00 committed by Mike Pennisi
parent dfbf33b3ac
commit ba31c4da9c
9 changed files with 21 additions and 21 deletions

View File

@ -44,7 +44,7 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(
Reflect.set(sample, i, newVal),
true,
"set value during interaction"
"set value during iteration"
);
newVal++;
@ -52,7 +52,7 @@ testWithTypedArrayConstructors(function(TA) {
return true;
});
assert.sameValue(sample[0], 7, "changed values after interaction [0] == 7");
assert.sameValue(sample[1], 1, "changed values after interaction [1] == 1");
assert.sameValue(sample[2], 2, "changed values after interaction [2] == 2");
assert.sameValue(sample[0], 7, "changed values after iteration [0] == 7");
assert.sameValue(sample[1], 1, "changed values after iteration [1] == 1");
assert.sameValue(sample[2], 2, "changed values after iteration [2] == 2");
});

View File

@ -42,5 +42,5 @@ testWithTypedArrayConstructors(function(TA) {
});
assert.sameValue(getCalls, 0, "ignores length properties");
assert.sameValue(calls, 2, "interactions are not affected by custom length");
assert.sameValue(calls, 2, "iterations are not affected by custom length");
});

View File

@ -4,7 +4,7 @@
/*---
esid: sec-%typedarray%.prototype.every
description: >
Integer indexed values are not cached before interaction
Integer indexed values are not cached before iteration
info: >
22.2.3.7 %TypedArray%.prototype.every ( callbackfn [ , thisArg ] )

View File

@ -35,13 +35,13 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(
Reflect.set(sample, i, newVal),
true,
"set value during interaction"
"set value during iteration"
);
newVal++;
});
assert.sameValue(sample[0], 7, "changed values after interaction [0] == 7");
assert.sameValue(sample[1], 1, "changed values after interaction [1] == 1");
assert.sameValue(sample[2], 2, "changed values after interaction [2] == 2");
assert.sameValue(sample[0], 7, "changed values after iteration [0] == 7");
assert.sameValue(sample[1], 1, "changed values after iteration [1] == 1");
assert.sameValue(sample[2], 2, "changed values after iteration [2] == 2");
});

View File

@ -4,7 +4,7 @@
/*---
esid: sec-%typedarray%.prototype.foreach
description: >
Integer indexed values are not cached before interaction
Integer indexed values are not cached before iteration
info: >
22.2.3.12 %TypedArray%.prototype.forEach ( callbackfn [ , thisArg ] )

View File

@ -30,13 +30,13 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(
Reflect.set(sample, i, newVal),
true,
"set value during interaction"
"set value during iteration"
);
newVal++;
});
assert.sameValue(sample[0], 7, "changed values after interaction [0] == 7");
assert.sameValue(sample[1], 1, "changed values after interaction [1] == 1");
assert.sameValue(sample[2], 2, "changed values after interaction [2] == 2");
assert.sameValue(sample[0], 7, "changed values after iteration [0] == 7");
assert.sameValue(sample[1], 1, "changed values after iteration [1] == 1");
assert.sameValue(sample[2], 2, "changed values after iteration [2] == 2");
});

View File

@ -44,13 +44,13 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(
Reflect.set(sample, i, newVal),
true,
"set value during interaction"
"set value during iteration"
);
newVal++;
});
assert.sameValue(sample[0], 7, "changed values after interaction [0] == 7");
assert.sameValue(sample[1], 1, "changed values after interaction [1] == 1");
assert.sameValue(sample[2], 2, "changed values after interaction [2] == 2");
assert.sameValue(sample[0], 7, "changed values after iteration [0] == 7");
assert.sameValue(sample[1], 1, "changed values after iteration [1] == 1");
assert.sameValue(sample[2], 2, "changed values after iteration [2] == 2");
});

View File

@ -41,5 +41,5 @@ testWithTypedArrayConstructors(function(TA) {
});
assert.sameValue(getCalls, 0, "ignores length properties");
assert.sameValue(calls, 2, "interactions are not affected by custom length");
assert.sameValue(calls, 2, "iterations are not affected by custom length");
});

View File

@ -3,7 +3,7 @@
/*---
esid: sec-%typedarray%.prototype.some
description: >
Integer indexed values are not cached before interaction
Integer indexed values are not cached before iteration
info: >
22.2.3.25 %TypedArray%.prototype.some ( callbackfn [ , thisArg ] )