bad-buffers-and-views.any.html
Details
- Test
/streams/readable-byte-streams/bad-buffers-and-views.any.html- Harness
- OK
Subtests
| Status | Subtest |
|---|---|
| PASS | ReadableStream with byte source: read()ing from a closed stream still transfers the buffer |
| PASS | ReadableStream with byte source: read()ing from a stream with queued chunks still transfers the buffer |
| PASS | ReadableStream with byte source: enqueuing an already-detached buffer throws |
| PASS | ReadableStream with byte source: enqueuing a zero-length buffer throws |
| PASS | ReadableStream with byte source: enqueuing a zero-length view on a non-zero-length buffer throws |
| PASS | ReadableStream with byte source: reading into an already-detached buffer rejects |
| PASS | ReadableStream with byte source: reading into a zero-length buffer rejects |
| PASS | ReadableStream with byte source: reading into a zero-length view on a non-zero-length buffer rejects |
| PASS | ReadableStream with byte source: respond() throws if the BYOB request's buffer has been detached (in the readable state) |
| FAIL | ReadableStream with byte source: respond() throws if the BYOB request's buffer has been detached (in the closed state) Cannot read properties of null (reading 'view') |
| PASS | ReadableStream with byte source: respondWithNewView() throws if the supplied view's buffer has been detached (in the readable state) |
| PASS | ReadableStream with byte source: respondWithNewView() throws if the supplied view's buffer is zero-length (in the readable state) |
| PASS | ReadableStream with byte source: respondWithNewView() throws if the supplied view is zero-length on a non-zero-length buffer (in the readable state) |
| PASS | ReadableStream with byte source: respondWithNewView() throws if the supplied view has a different offset (in the readable state) |
| FAIL | ReadableStream with byte source: respondWithNewView() throws if the supplied view has a different offset (in the closed state) Cannot read properties of null (reading 'view') |
| PASS | ReadableStream with byte source: respondWithNewView() throws if the supplied view's buffer has a different length (in the readable state) |
| PASS | ReadableStream with byte source: respondWithNewView() throws if the supplied view's buffer has a different length (autoAllocateChunkSize) |
| PASS | ReadableStream with byte source: respondWithNewView() throws if the supplied view has a larger length (in the readable state) |
| PASS | ReadableStream with byte source: respondWithNewView() throws if the supplied view's buffer has been detached (in the closed state) |
| FAIL | ReadableStream with byte source: respondWithNewView() throws if the supplied view's buffer is zero-length (in the closed state) assert_throws_js: function "() => c.byobRequest.respondWithNewView(view)" threw object "TypeError: Cannot read properties of null (reading 'respondWithNewView')" ("TypeError") expected instance of fun… |
| PASS | ReadableStream with byte source: respondWithNewView() throws if the supplied view is non-zero-length (in the closed state) |
| FAIL | ReadableStream with byte source: respondWithNewView() throws if the supplied view's buffer has a different length (in the closed state) assert_throws_js: function "() => c.byobRequest.respondWithNewView(view)" threw object "TypeError: Cannot read properties of null (reading 'respondWithNewView')" ("TypeError") expected instance of fun… |
| PASS | ReadableStream with byte source: enqueue() throws if the BYOB request's buffer has been detached (in the readable state) |
| FAIL | ReadableStream with byte source: enqueue() throws if the BYOB request's buffer has been detached (in the closed state) Cannot read properties of null (reading 'view') |