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( assert.sameValue(
Reflect.set(sample, i, newVal), Reflect.set(sample, i, newVal),
true, true,
"set value during interaction" "set value during iteration"
); );
newVal++; newVal++;
@ -52,7 +52,7 @@ testWithTypedArrayConstructors(function(TA) {
return true; return true;
}); });
assert.sameValue(sample[0], 7, "changed values after interaction [0] == 7"); assert.sameValue(sample[0], 7, "changed values after iteration [0] == 7");
assert.sameValue(sample[1], 1, "changed values after interaction [1] == 1"); assert.sameValue(sample[1], 1, "changed values after iteration [1] == 1");
assert.sameValue(sample[2], 2, "changed values after interaction [2] == 2"); 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(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 esid: sec-%typedarray%.prototype.every
description: > description: >
Integer indexed values are not cached before interaction Integer indexed values are not cached before iteration
info: > info: >
22.2.3.7 %TypedArray%.prototype.every ( callbackfn [ , thisArg ] ) 22.2.3.7 %TypedArray%.prototype.every ( callbackfn [ , thisArg ] )

View File

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

View File

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

View File

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

View File

@ -44,13 +44,13 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue( assert.sameValue(
Reflect.set(sample, i, newVal), Reflect.set(sample, i, newVal),
true, true,
"set value during interaction" "set value during iteration"
); );
newVal++; newVal++;
}); });
assert.sameValue(sample[0], 7, "changed values after interaction [0] == 7"); assert.sameValue(sample[0], 7, "changed values after iteration [0] == 7");
assert.sameValue(sample[1], 1, "changed values after interaction [1] == 1"); assert.sameValue(sample[1], 1, "changed values after iteration [1] == 1");
assert.sameValue(sample[2], 2, "changed values after interaction [2] == 2"); 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(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 esid: sec-%typedarray%.prototype.some
description: > description: >
Integer indexed values are not cached before interaction Integer indexed values are not cached before iteration
info: > info: >
22.2.3.25 %TypedArray%.prototype.some ( callbackfn [ , thisArg ] ) 22.2.3.25 %TypedArray%.prototype.some ( callbackfn [ , thisArg ] )