read-min.any.html

FAILExpected12 of 24 subtests pass334 ms

Details

Test
/streams/readable-byte-streams/read-min.any.html
Harness
OK

Subtests

StatusSubtestMessage
PASSReadableStream with byte source: read({ min }) rejects if min is 0
PASSReadableStream with byte source: read({ min }) rejects if min is negative
FAILReadableStream with byte source: read({ min }) rejects if min is larger than view's length (Uint8Array)
promise_rejects_js: function "function() { throw e; }" threw object "TypeError: Minimum bytes to read (2) exceeds size of buffer (1)." ("TypeError") expected instance of function "function RangeError(…
promise_rejects_js: function "function() { throw e; }" threw object "TypeError: Minimum bytes to read (2) exceeds size of buffer (1)." ("TypeError") expected instance of function "function RangeError(…
FAILReadableStream with byte source: read({ min }) rejects if min is larger than view's length (Uint16Array)
promise_rejects_js: function "function() { throw e; }" threw object "TypeError: Minimum bytes to read (4) exceeds size of buffer (2)." ("TypeError") expected instance of function "function RangeError(…
promise_rejects_js: function "function() { throw e; }" threw object "TypeError: Minimum bytes to read (4) exceeds size of buffer (2)." ("TypeError") expected instance of function "function RangeError(…
FAILReadableStream with byte source: read({ min }) rejects if min is larger than view's length (DataView)
promise_rejects_js: function "function() { throw e; }" threw object "TypeError: Minimum bytes to read (2) exceeds size of buffer (1)." ("TypeError") expected instance of function "function RangeError(…
promise_rejects_js: function "function() { throw e; }" threw object "TypeError: Minimum bytes to read (2) exceeds size of buffer (1)." ("TypeError") expected instance of function "function RangeError(…
PASSReadableStream with byte source: read({ min }), then read()
PASSReadableStream with byte source: read({ min }) with a DataView
PASSReadableStream with byte source: enqueue(), then read({ min })
FAILReadableStream with byte source: read({ min: 3 }) on a 3-byte Uint8Array, then multiple enqueue() up to 3 bytes
Cannot read properties of null (reading 'view')
Cannot read properties of null (reading 'view')
FAILReadableStream with byte source: read({ min: 3 }) on a 5-byte Uint8Array, then multiple enqueue() up to 3 bytes
Cannot read properties of null (reading 'view')
Cannot read properties of null (reading 'view')
FAILReadableStream with byte source: read({ min: 3 }) on a 5-byte Uint8Array, then multiple enqueue() up to 4 bytes
Cannot read properties of null (reading 'view')
Cannot read properties of null (reading 'view')
FAILReadableStream with byte source: enqueue(), read({ min }) partially, then read()
assert_equals: result2.value.buffer.byteLength expected 16 but got 4096
assert_equals: result2.value.buffer.byteLength expected 16 but got 4096
PASSReadableStream with byte source: read({ min }), then respondWithNewView() with a transferred ArrayBuffer
PASSReadableStream with byte source: read({ min }) on a closed stream
FAILReadableStream with byte source: read({ min }) when closed before view is filled
assert_true: result.done expected true got false
assert_true: result.done expected true got false
PASSReadableStream with byte source: read({ min }) when closed immediately after view is filled
PASSReadableStream with byte source: read({ min }) on an errored stream
PASSReadableStream with byte source: read({ min }), then error()
FAILReadableStream with byte source: getReader(), read({ min }), then cancel()
assert_unreached: pull() should not be called Reached unreachable code
assert_unreached: pull() should not be called Reached unreachable code
FAILReadableStream with byte source: cancel() with partially filled pending read({ min }) request
assert_true: result.done expected true got false
assert_true: result.done expected true got false
PASSReadableStream with byte source: enqueue(), then read({ min }) with smaller views
FAILReadableStream with byte source: 3 byte enqueue(), then close(), then read({ min }) with 2-element Uint16Array must fail
promise_rejects_js: read() must fail function "function() { throw e; }" threw object "Error: internal error; reference = u34delbn2t857ttbcikfeoj1" ("Error") expected instance of function "function Typ…
promise_rejects_js: read() must fail function "function() { throw e; }" threw object "Error: internal error; reference = u34delbn2t857ttbcikfeoj1" ("Error") expected instance of function "function Typ…
FAILReadableStream with byte source: read({ min }) with 2-element Uint16Array, then 3 byte enqueue(), then close() must fail
assert_unreached: pull() should not be called Reached unreachable code
assert_unreached: pull() should not be called Reached unreachable code
PASSReadableStream with byte source: tee() with read({ min }) from branch1 and read() from branch2