summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-target.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-target.js')
-rw-r--r--test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-target.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-target.js b/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-target.js
index dc46906d3..32b4818ad 100644
--- a/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-target.js
+++ b/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-target.js
@@ -29,32 +29,28 @@ includes: [compareArray.js, testTypedArray.js]
testWithTypedArrayConstructors(function(TA) {
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(-10, 0),
- [0, 1, 2, 3]
+ new TA([0, 1, 2, 3]).copyWithin(-10, 0), [0, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(-10, 0) -> [0, 1, 2, 3]'
);
assert(
compareArray(
- new TA([1, 2, 3, 4, 5]).copyWithin(-Infinity, 0),
- [1, 2, 3, 4, 5]
+ new TA([1, 2, 3, 4, 5]).copyWithin(-Infinity, 0), [1, 2, 3, 4, 5]
),
'[1, 2, 3, 4, 5].copyWithin(-Infinity, 0) -> [1, 2, 3, 4, 5]'
);
assert(
compareArray(
- new TA([0, 1, 2, 3, 4]).copyWithin(-10, 2),
- [2, 3, 4, 3, 4]
+ new TA([0, 1, 2, 3, 4]).copyWithin(-10, 2), [2, 3, 4, 3, 4]
),
'[0, 1, 2, 3, 4].copyWithin(-10, 2) -> [2, 3, 4, 3, 4]'
);
assert(
compareArray(
- new TA([1, 2, 3, 4, 5]).copyWithin(-Infinity, 2),
- [3, 4, 5, 4, 5]
+ new TA([1, 2, 3, 4, 5]).copyWithin(-Infinity, 2), [3, 4, 5, 4, 5]
),
'[1, 2, 3, 4, 5].copyWithin(-Infinity, 2) -> [3, 4, 5, 4, 5]'
);