diff options
Diffstat (limited to 'test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js')
-rw-r--r-- | test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js b/test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js index f1cc0504a..4dfbf4f4d 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js @@ -22,52 +22,45 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([0, 1, 2, 3, 4, 5]).copyWithin(6, 0), - [0, 1, 2, 3, 4, 5] + new TA([0, 1, 2, 3, 4, 5]).copyWithin(6, 0), [0, 1, 2, 3, 4, 5] ) ); 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, 5]).copyWithin(0, 6), - [0, 1, 2, 3, 4, 5] + new TA([0, 1, 2, 3, 4, 5]).copyWithin(0, 6), [0, 1, 2, 3, 4, 5] ) ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(0, Infinity), - [1, 2, 3, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(0, Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(0, Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4, 5]).copyWithin(6, 6), - [0, 1, 2, 3, 4, 5] + new TA([0, 1, 2, 3, 4, 5]).copyWithin(6, 6), [0, 1, 2, 3, 4, 5] ) ); assert( compareArray( - new TA([0, 1, 2, 3, 4, 5]).copyWithin(10, 10), - [0, 1, 2, 3, 4, 5] + new TA([0, 1, 2, 3, 4, 5]).copyWithin(10, 10), [0, 1, 2, 3, 4, 5] ) ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(Infinity, Infinity), - [1, 2, 3, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(Infinity, Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(Infinity, Infinity) -> [1, 2, 3, 4, 5]' ); |