mirror of
https://github.com/tc39/test262.git
synced 2025-07-24 22:45:10 +02:00
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(
|
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");
|
||||||
});
|
});
|
||||||
|
@ -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");
|
||||||
});
|
});
|
||||||
|
@ -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 ] )
|
||||||
|
|
||||||
|
@ -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");
|
||||||
});
|
});
|
||||||
|
@ -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 ] )
|
||||||
|
|
||||||
|
@ -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");
|
||||||
});
|
});
|
||||||
|
@ -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");
|
||||||
});
|
});
|
||||||
|
@ -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");
|
||||||
});
|
});
|
||||||
|
@ -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 ] )
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user