Details
- Test
/streams/piping/abort.any.html- Harness
- OK
Subtests
| Status | Subtest |
|---|---|
| PASS | a signal argument 'null' should cause pipeTo() to reject |
| PASS | a signal argument 'AbortSignal' should cause pipeTo() to reject |
| PASS | a signal argument 'true' should cause pipeTo() to reject |
| PASS | a signal argument '-1' should cause pipeTo() to reject |
| PASS | a signal argument '[object AbortSignal]' should cause pipeTo() to reject |
| PASS | an aborted signal should cause the writable stream to reject with an AbortError |
| PASS | (reason: 'null') all the error objects should be the same object |
| PASS | (reason: 'undefined') all the error objects should be the same object |
| PASS | (reason: 'error1: error1') all the error objects should be the same object |
| PASS | preventCancel should prevent canceling the readable |
| PASS | preventAbort should prevent aborting the readable |
| PASS | preventCancel and preventAbort should prevent canceling the readable and aborting the readable |
| PASS | (reason: 'null') abort should prevent further reads |
| PASS | (reason: 'undefined') abort should prevent further reads |
| PASS | (reason: 'error1: error1') abort should prevent further reads |
| FAIL | (reason: 'null') all pending writes should complete on abort promise_test: Unhandled rejection with value: object "TypeError: The value cannot be converted because it is not an integer." |
| FAIL | (reason: 'undefined') all pending writes should complete on abort promise_test: Unhandled rejection with value: object "TypeError: The value cannot be converted because it is not an integer." |
| FAIL | (reason: 'error1: error1') all pending writes should complete on abort promise_test: Unhandled rejection with value: object "TypeError: The value cannot be converted because it is not an integer." |
| FAIL | (reason: 'null') underlyingSource.cancel() should called when abort, even with pending pull assert_equals: cancel should have been called expected 2 but got 0 |
| FAIL | (reason: 'undefined') underlyingSource.cancel() should called when abort, even with pending pull assert_equals: cancel should have been called expected 2 but got 0 |
| FAIL | (reason: 'error1: error1') underlyingSource.cancel() should called when abort, even with pending pull assert_equals: cancel should have been called expected 2 but got 0 |
| FAIL | a rejection from underlyingSource.cancel() should be returned by pipeTo() promise_rejects_exactly: pipeTo should reject function "function() { throw e; }" threw object "AbortError: The operation was aborted" but we expected it to throw object "error1: error1" |
| PASS | a rejection from underlyingSink.abort() should be returned by pipeTo() |
| FAIL | a rejection from underlyingSink.abort() should be preferred to one from underlyingSource.cancel() assert_array_equals: abort() should be called before cancel() expected property 0 to be "abort" but got "cancel" (expected array ["abort", "cancel"] got ["cancel", "abort"]) |
| PASS | abort signal takes priority over closed readable |
| PASS | abort signal takes priority over errored readable |
| PASS | abort signal takes priority over closed writable |
| FAIL | abort signal takes priority over errored writable promise_rejects_dom: pipeTo should reject function "function() { throw e; }" threw object "error1: error1" that is not a DOMException AbortError: property "code" is equal to undefined, expected 20 |
| PASS | abort should do nothing after the readable is closed |
| PASS | abort should do nothing after the readable is errored |
| FAIL | abort should do nothing after the readable is errored, even with pending writes promise_rejects_exactly: pipeTo should reject function "function() { throw e; }" threw object "AbortError: The operation was aborted" but we expected it to throw object "error1: error1" |
| FAIL | abort should do nothing after the writable is errored assert_unreached: Should have rejected: pipeTo should reject Reached unreachable code |
| FAIL | pipeTo on a teed readable byte stream should only be aborted when both branches are aborted assert_true: pipeTo should not resolve yet expected true got false |