Skip to content
Snippets Groups Projects
Commit ba31c4da authored by Leonardo Balter's avatar Leonardo Balter Committed by Mike Pennisi
Browse files

s/interaction/iteration on TypedArray.prototype methods

parent dfbf33b3
No related branches found
No related tags found
No related merge requests found
Showing
with 21 additions and 21 deletions
......@@ -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");
});
......@@ -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");
});
......@@ -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 ] )
......
......@@ -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");
});
......@@ -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 ] )
......
......@@ -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");
});
......@@ -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");
});
......@@ -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");
});
......@@ -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 ] )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment