mirror of
https://github.com/servo/servo.git
synced 2025-08-21 13:25:34 +01:00
Update web-platform-tests to revision a46616a5b18e83587ddbbed756c7b96cbb4b015d
This commit is contained in:
parent
3f07cfec7c
commit
578498ba24
4001 changed files with 159517 additions and 30260 deletions
|
@ -1897,6 +1897,28 @@ promise_test(t => {
|
|||
}, 'ReadableStream with byte source: Throwing in pull in response to read(view) must be ignored if the stream is ' +
|
||||
'errored in it');
|
||||
|
||||
promise_test(() => {
|
||||
// Tests https://github.com/whatwg/streams/issues/686
|
||||
|
||||
let controller;
|
||||
const rs = new ReadableStream({
|
||||
autoAllocateChunkSize: 128,
|
||||
start(c) {
|
||||
controller = c;
|
||||
},
|
||||
type: "bytes"
|
||||
});
|
||||
|
||||
const readPromise = rs.getReader().read();
|
||||
|
||||
const br = controller.byobRequest;
|
||||
controller.close();
|
||||
|
||||
br.respond(0);
|
||||
|
||||
return readPromise;
|
||||
}, 'ReadableStream with byte source: default reader + autoAllocateChunkSize + byobRequest interaction');
|
||||
|
||||
test(() => {
|
||||
const ReadableStreamBYOBReader = new ReadableStream({ type: 'bytes' }).getReader({ mode: 'byob' }).constructor;
|
||||
const stream = new ReadableStream({ type: 'bytes' });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue