mirror of https://github.com/tc39/test262.git
s/interaction/iteration on TypedArray.prototype methods
This commit is contained in:
parent
dfbf33b3ac
commit
ba31c4da9c
|
@ -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 ] )
|
||||
|
||||
|
|
Loading…
Reference in New Issue