diff options
Diffstat (limited to 'test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-end.js')
-rw-r--r-- | test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-end.js | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-end.js b/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-end.js index d3a12fe31..6f77a75cd 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-end.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-end.js @@ -28,83 +28,83 @@ includes: [compareArray.js, testTypedArray.js] features: [TypedArray] ---*/ -testWithTypedArrayConstructors(function(TA, N) { +testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA(N([0, 1, 2, 3])).copyWithin(0, 1, -10), - N([0, 1, 2, 3]) + new TA([0, 1, 2, 3]).copyWithin(0, 1, -10), + [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, 1, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - new TA(N([1, 2, 3, 4, 5])).copyWithin(0, 1, -Infinity), - N([1, 2, 3, 4, 5]) + new TA([1, 2, 3, 4, 5]).copyWithin(0, 1, -Infinity), + [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(0, 1, -Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - new TA(N([0, 1, 2, 3])).copyWithin(0, -2, -10), - N([0, 1, 2, 3]) + new TA([0, 1, 2, 3]).copyWithin(0, -2, -10), + [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, -2, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - new TA(N([1, 2, 3, 4, 5])).copyWithin(0, -2, -Infinity), - N([1, 2, 3, 4, 5]) + new TA([1, 2, 3, 4, 5]).copyWithin(0, -2, -Infinity), + [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(0, -2, -Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - new TA(N([0, 1, 2, 3])).copyWithin(0, -9, -10), - N([0, 1, 2, 3]) + new TA([0, 1, 2, 3]).copyWithin(0, -9, -10), + [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, -9, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - new TA(N([1, 2, 3, 4, 5])).copyWithin(0, -9, -Infinity), - N([1, 2, 3, 4, 5]) + new TA([1, 2, 3, 4, 5]).copyWithin(0, -9, -Infinity), + [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(0, -9, -Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - new TA(N([0, 1, 2, 3])).copyWithin(-3, -2, -10), - N([0, 1, 2, 3]) + new TA([0, 1, 2, 3]).copyWithin(-3, -2, -10), + [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(-3, -2, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - new TA(N([1, 2, 3, 4, 5])).copyWithin(-3, -2, -Infinity), - N([1, 2, 3, 4, 5]) + new TA([1, 2, 3, 4, 5]).copyWithin(-3, -2, -Infinity), + [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(-3, -2, -Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - new TA(N([0, 1, 2, 3])).copyWithin(-7, -8, -9), - N([0, 1, 2, 3]) + new TA([0, 1, 2, 3]).copyWithin(-7, -8, -9), + [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(-7, -8, -9) -> [0, 1, 2, 3]' ); assert( compareArray( - new TA(N([1, 2, 3, 4, 5])).copyWithin(-7, -8, -Infinity), - N([1, 2, 3, 4, 5]) + new TA([1, 2, 3, 4, 5]).copyWithin(-7, -8, -Infinity), + [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(-7, -8, -Infinity) -> [1, 2, 3, 4, 5]' ); |