diff options
author | Robin Templeton <robin@igalia.com> | 2017-10-24 11:50:47 -0400 |
---|---|---|
committer | Leo Balter <leonardo.balter@gmail.com> | 2018-02-15 16:45:05 -0500 |
commit | 9232d65b303620da18e2fe57945275cd3b29cb22 (patch) | |
tree | d78451fe9cb6f64ded76786c09b701181f51e983 /test/built-ins/TypedArray/prototype/slice/infinity.js | |
parent | b59d956b3c268abd0875aeb87d6688f4c7aafc9b (diff) | |
download | qtdeclarative-testsuites-9232d65b303620da18e2fe57945275cd3b29cb22.tar.gz |
BigInt TypedArray tests
- add @jakobkummerow's changes
- remove EOL whitespace
- use 'Array.isArray' instead of 'instanceof Array'
- check for BigInt type in toLocaleString tests
- specify TypedArray constructor list for non-BigInt tests
- update TypedArray harness test for BigInt
- add a missing type coercion
- disable more tests for Big(U)Int64Array
- check for BigInt before using BigInt TypedArray constructors
Diffstat (limited to 'test/built-ins/TypedArray/prototype/slice/infinity.js')
-rw-r--r-- | test/built-ins/TypedArray/prototype/slice/infinity.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/built-ins/TypedArray/prototype/slice/infinity.js b/test/built-ins/TypedArray/prototype/slice/infinity.js index a93cd713a..7fda1ec89 100644 --- a/test/built-ins/TypedArray/prototype/slice/infinity.js +++ b/test/built-ins/TypedArray/prototype/slice/infinity.js @@ -7,11 +7,11 @@ includes: [testTypedArray.js, compareArray.js] features: [TypedArray] ---*/ -testWithTypedArrayConstructors(function(TA) { - var sample = new TA([40, 41, 42, 43]); +testWithTypedArrayConstructors(function(TA, N) { + var sample = new TA(N([40, 41, 42, 43])); assert( - compareArray(sample.slice(-Infinity), [40, 41, 42, 43]), + compareArray(sample.slice(-Infinity), N([40, 41, 42, 43])), "start == -Infinity" ); assert( @@ -23,7 +23,7 @@ testWithTypedArrayConstructors(function(TA) { "end == -Infinity" ); assert( - compareArray(sample.slice(0, Infinity), [40, 41, 42, 43]), + compareArray(sample.slice(0, Infinity), N([40, 41, 42, 43])), "end == Infinity" ); }); |