diff options
author | Valerie R Young <valerie@bocoup.com> | 2018-03-08 18:23:27 -0500 |
---|---|---|
committer | Valerie R Young <valerie@bocoup.com> | 2018-03-08 18:23:27 -0500 |
commit | 2576b603649bd05cc80d33c22df65252c4a25843 (patch) | |
tree | 6bb671c05248511a385c34cec350036bae28e8c7 | |
parent | 3af53b80871ab8f4585759d211bda5869e8fba01 (diff) | |
download | qtdeclarative-testsuites-2576b603649bd05cc80d33c22df65252c4a25843.tar.gz |
TypedArray and Async Iteration bug fixes
5 files changed, 15 insertions, 3 deletions
diff --git a/test/built-ins/AsyncFromSyncIteratorPrototype/next/return-promise.js b/test/built-ins/AsyncFromSyncIteratorPrototype/next/return-promise.js index d3bb1be2f..f4daeb01b 100644 --- a/test/built-ins/AsyncFromSyncIteratorPrototype/next/return-promise.js +++ b/test/built-ins/AsyncFromSyncIteratorPrototype/next/return-promise.js @@ -12,7 +12,6 @@ info: | ... 18. Return promiseCapability.[[Promise]]. -flags: [async] features: [async-iteration] ---*/ diff --git a/test/built-ins/AsyncFromSyncIteratorPrototype/return/iterator-result-unwrap-promise.js b/test/built-ins/AsyncFromSyncIteratorPrototype/return/iterator-result-unwrap-promise.js index 08ed58ec3..311b93a8f 100644 --- a/test/built-ins/AsyncFromSyncIteratorPrototype/return/iterator-result-unwrap-promise.js +++ b/test/built-ins/AsyncFromSyncIteratorPrototype/return/iterator-result-unwrap-promise.js @@ -60,4 +60,5 @@ iter.next().then(function (result) { }).then($DONE, $DONE); } ).catch($DONE); -}).then($DONE, $DONE); + +}).catch($DONE); diff --git a/test/built-ins/AsyncFromSyncIteratorPrototype/throw/iterator-result-unwrap-promise.js b/test/built-ins/AsyncFromSyncIteratorPrototype/throw/iterator-result-unwrap-promise.js index 521f51311..f34568239 100644 --- a/test/built-ins/AsyncFromSyncIteratorPrototype/throw/iterator-result-unwrap-promise.js +++ b/test/built-ins/AsyncFromSyncIteratorPrototype/throw/iterator-result-unwrap-promise.js @@ -62,4 +62,4 @@ iter.next().then(function (result) { }).then($DONE, $DONE); } ).catch($DONE); -}).then($DONE, $DONE); +}).catch($DONE); diff --git a/test/built-ins/TypedArrays/ctors/buffer-arg/bufferbyteoffset-throws-from-modulo-element-size.js b/test/built-ins/TypedArrays/ctors/buffer-arg/bufferbyteoffset-throws-from-modulo-element-size.js index 1c916b43c..0a2c1d657 100644 --- a/test/built-ins/TypedArrays/ctors/buffer-arg/bufferbyteoffset-throws-from-modulo-element-size.js +++ b/test/built-ins/TypedArrays/ctors/buffer-arg/bufferbyteoffset-throws-from-modulo-element-size.js @@ -22,6 +22,12 @@ features: [TypedArray] var buffer = new ArrayBuffer(1); testWithTypedArrayConstructors(function(TA) { + + // Exclude 8 bit buffers from this tests, as their elementSize = 1 + if ( TA.name.indexOf("8") > -1 ) { + return; + } + assert.throws(RangeError, function() { new TA(buffer); }); diff --git a/test/built-ins/TypedArrays/ctors/buffer-arg/byteoffset-throws-from-modulo-element-size.js b/test/built-ins/TypedArrays/ctors/buffer-arg/byteoffset-throws-from-modulo-element-size.js index f495e6bcc..1f68c09b3 100644 --- a/test/built-ins/TypedArrays/ctors/buffer-arg/byteoffset-throws-from-modulo-element-size.js +++ b/test/built-ins/TypedArrays/ctors/buffer-arg/byteoffset-throws-from-modulo-element-size.js @@ -21,6 +21,12 @@ features: [TypedArray] var buffer = new ArrayBuffer(8); testWithTypedArrayConstructors(function(TA) { + + // Exclude 8 bit buffers from this tests, as their elementSize = 1 + if ( TA.name.indexOf("8") > -1 ) { + return; + } + assert.throws(RangeError, function() { new TA(buffer, 7); }); |