diff options
author | Leo Balter <leonardo.balter@gmail.com> | 2018-02-15 13:00:09 -0500 |
---|---|---|
committer | Leo Balter <leonardo.balter@gmail.com> | 2018-02-15 16:45:08 -0500 |
commit | 098c69540ee57f94daf795b20e8a3e70ab986860 (patch) | |
tree | 9b207f1900e7beb8f3b28989230b00e00c80ef38 /test/built-ins/TypedArray/prototype/copyWithin/coerced-values-end.js | |
parent | 3f3f2faa8e71eaa3f316635dc8fb3c3a0661b654 (diff) | |
download | qtdeclarative-testsuites-098c69540ee57f94daf795b20e8a3e70ab986860.tar.gz |
Remove N()
Diffstat (limited to 'test/built-ins/TypedArray/prototype/copyWithin/coerced-values-end.js')
-rw-r--r-- | test/built-ins/TypedArray/prototype/copyWithin/coerced-values-end.js | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-end.js b/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-end.js index 19f06fbd3..225f52cea 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-end.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-end.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(1, 0, null), - N([0, 1, 2, 3]) + new TA([0, 1, 2, 3]).copyWithin(1, 0, null), + [0, 1, 2, 3] ), 'null value coerced to 0' ); assert( compareArray( - new TA(N([0, 1, 2, 3])).copyWithin(1, 0, NaN), - N([0, 1, 2, 3]) + new TA([0, 1, 2, 3]).copyWithin(1, 0, NaN), + [0, 1, 2, 3] ), 'NaN value coerced to 0' ); assert( compareArray( - new TA(N([0, 1, 2, 3])).copyWithin(1, 0, false), - N([0, 1, 2, 3]) + new TA([0, 1, 2, 3]).copyWithin(1, 0, false), + [0, 1, 2, 3] ), 'false value coerced to 0' ); assert( compareArray( - new TA(N([0, 1, 2, 3])).copyWithin(1, 0, true), - N([0, 0, 2, 3]) + new TA([0, 1, 2, 3]).copyWithin(1, 0, true), + [0, 0, 2, 3] ), 'true value coerced to 1' ); assert( compareArray( - new TA(N([0, 1, 2, 3])).copyWithin(1, 0, '-2'), - N([0, 0, 1, 3]) + new TA([0, 1, 2, 3]).copyWithin(1, 0, '-2'), + [0, 0, 1, 3] ), 'string "-2" value coerced to integer -2' ); assert( compareArray( - new TA(N([0, 1, 2, 3])).copyWithin(1, 0, -2.5), - N([0, 0, 1, 3]) + new TA([0, 1, 2, 3]).copyWithin(1, 0, -2.5), + [0, 0, 1, 3] ), 'float -2.5 value coerced to integer -2' ); |