Details
- Test
/streams/readable-byte-streams/tee.any.html- Harness
- OK
Subtests
| Status | Subtest |
|---|---|
| PASS | ReadableStream teeing with byte source: rs.tee() returns an array of two ReadableStreams |
| PASS | ReadableStream teeing with byte source: should be able to read one branch to the end without affecting the other |
| FAIL | ReadableStream teeing with byte source: chunks should be cloned for each branch assert_equals: reader1 value buffer.byteLength expected 1 but got 4096 |
| FAIL | ReadableStream teeing with byte source: chunks for BYOB requests from branch 1 should be cloned to branch 2 assert_equals: value buffer.byteLength expected 1 but got 4096 |
| PASS | ReadableStream teeing with byte source: errors in the source should propagate to both branches |
| FAIL | ReadableStream teeing with byte source: canceling branch1 should not impact branch2 assert_equals: branch2 should have two chunks expected 2 but got 1 |
| FAIL | ReadableStream teeing with byte source: canceling branch2 should not impact branch1 assert_equals: branch1 should have two chunks expected 2 but got 1 |
| PASS | Running templatedRSTeeCancel with ReadableStream teeing with byte source |
| FAIL | ReadableStream teeing with byte source: canceling both branches should aggregate the cancel reasons into an array assert_array_equals: the cancel reason should be an array containing those from the branches value is object "Error: I have the death sentence on twelve systems.", expected array |
| FAIL | ReadableStream teeing with byte source: canceling both branches in reverse order should aggregate the cancel reasons into an array assert_array_equals: the cancel reason should be an array containing those from the branches value is object "Error: This little one's not worth the effort.", expected array |
| FAIL | ReadableStream teeing with byte source: failing to cancel the original stream should cause cancel() to reject on branches assert_unreached: Should have rejected: undefined Reached unreachable code |
| PASS | ReadableStream teeing with byte source: erroring a teed stream should properly handle canceled branches |
| PASS | ReadableStream teeing with byte source: closing the original should close the branches |
| PASS | ReadableStream teeing with byte source: erroring the original should immediately error the branches |
| PASS | ReadableStream teeing with byte source: erroring the original should error pending reads from default reader |
| PASS | ReadableStream teeing with byte source: erroring the original should error pending reads from BYOB reader |
| PASS | ReadableStream teeing with byte source: canceling branch1 should finish when branch2 reads until end of stream |
| PASS | ReadableStream teeing with byte source: canceling branch1 should finish when branch2 reads with a BYOB reader until end of stream |
| PASS | ReadableStream teeing with byte source: canceling branch1 should finish when original stream errors |
| PASS | ReadableStream teeing with byte source: should not pull any chunks if no branches are reading |
| PASS | ReadableStream teeing with byte source: should only pull enough to fill the emptiest queue |
| PASS | ReadableStream teeing with byte source: should not pull when original is already errored |
| PASS | ReadableStream teeing with byte source: stops pulling when original stream errors while branch 1 is reading |
| PASS | ReadableStream teeing with byte source: stops pulling when original stream errors while branch 2 is reading |
| FAIL | ReadableStream teeing with byte source: stops pulling when original stream errors while both branches are reading assert_array_equals: pull should be called once lengths differ, expected array ["pull"] length 1, got ["pull", "pull"] length 2 |
| PASS | ReadableStream teeing with byte source: canceling both branches in sequence with delay |
| FAIL | ReadableStream teeing with byte source: failing to cancel when canceling both branches in sequence with delay assert_unreached: Should have rejected: undefined Reached unreachable code |
| FAIL | ReadableStream teeing with byte source: read from branch1 and branch2, cancel branch1, cancel branch2 assert_equals: expected (undefined) undefined but got (object) object "" |
| FAIL | ReadableStream teeing with byte source: read from branch1 and branch2, cancel branch2, cancel branch1 assert_equals: expected (undefined) undefined but got (object) object "" |
| FAIL | ReadableStream teeing with byte source: read from branch1 and branch2, cancel branch2, enqueue to branch1 assert_equals: expected (undefined) undefined but got (object) object "" |
| FAIL | ReadableStream teeing with byte source: read from branch1 and branch2, cancel branch1, respond to branch2 assert_equals: expected (undefined) undefined but got (object) object "" |
| FAIL | ReadableStream teeing with byte source: pull with BYOB reader, then pull with default reader assert_equals: second read buffer.byteLength expected 1 but got 4096 |
| FAIL | ReadableStream teeing with byte source: pull with default reader, then pull with BYOB reader assert_equals: first read buffer.byteLength expected 1 but got 4096 |
| PASS | ReadableStream teeing with byte source: read from branch2, then read from branch1 |
| FAIL | ReadableStream teeing with byte source: read from branch1 with default reader, then close while branch2 has pending BYOB read assert_equals: first BYOB request expected null but got object "[object ReadableStreamBYOBRequest]" |
| FAIL | ReadableStream teeing with byte source: read from branch2 with default reader, then close while branch1 has pending BYOB read assert_equals: first BYOB request expected null but got object "[object ReadableStreamBYOBRequest]" |
| PASS | ReadableStream teeing with byte source: close when both branches have pending BYOB reads |
| FAIL | ReadableStream teeing with byte source: enqueue() and close() while both branches are pulling assert_equals: first chunk from branch1 should be correct buffer.byteLength expected 1 but got 4096 |
| PASS | ReadableStream teeing with byte source: respond() and close() while both branches are pulling |
| FAIL | ReadableStream teeing with byte source: reading an array with a byte offset should clone correctly assert_equals: reader1 value byteOffset expected 2 but got 0 |