diff options
Diffstat (limited to 'test/built-ins/TypedArray/prototype/copyWithin/negative-start.js')
-rw-r--r-- | test/built-ins/TypedArray/prototype/copyWithin/negative-start.js | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/test/built-ins/TypedArray/prototype/copyWithin/negative-start.js b/test/built-ins/TypedArray/prototype/copyWithin/negative-start.js index 8c16e7a29..4035db6c2 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/negative-start.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/negative-start.js @@ -26,51 +26,51 @@ 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), - N([3, 1, 2, 3]) + new TA([0, 1, 2, 3]).copyWithin(0, -1), + [3, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, -1) -> [3, 1, 2, 3]' ); assert( compareArray( - new TA(N([0, 1, 2, 3, 4])).copyWithin(2, -2), - N([0, 1, 3, 4, 4]) + new TA([0, 1, 2, 3, 4]).copyWithin(2, -2), + [0, 1, 3, 4, 4] ), '[0, 1, 2, 3, 4].copyWithin(2, -2) -> [0, 1, 3, 4, 4]' ); assert( compareArray( - new TA(N([0, 1, 2, 3, 4])).copyWithin(1, -2), - N([0, 3, 4, 3, 4]) + new TA([0, 1, 2, 3, 4]).copyWithin(1, -2), + [0, 3, 4, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(1, -2) -> [0, 3, 4, 3, 4]' ); assert( compareArray( - new TA(N([0, 1, 2, 3])).copyWithin(-1, -2), - N([0, 1, 2, 2]) + new TA([0, 1, 2, 3]).copyWithin(-1, -2), + [0, 1, 2, 2] ), '[0, 1, 2, 3].copyWithin(-1, -2) -> [ 0, 1, 2, 2 ]' ); assert( compareArray( - new TA(N([0, 1, 2, 3, 4])).copyWithin(-2, -3), - N([0, 1, 2, 2, 3]) + new TA([0, 1, 2, 3, 4]).copyWithin(-2, -3), + [0, 1, 2, 2, 3] ), '[0, 1, 2, 3, 4].copyWithin(-2, -3) -> [0, 1, 2, 2, 3]' ); assert( compareArray( - new TA(N([0, 1, 2, 3, 4])).copyWithin(-5, -2), - N([3, 4, 2, 3, 4]) + new TA([0, 1, 2, 3, 4]).copyWithin(-5, -2), + [3, 4, 2, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(-5, -2) -> [3, 4, 2, 3, 4]' ); |