mirror of
https://github.com/servo/servo.git
synced 2025-08-23 06:15:35 +01:00
Update web-platform-tests to revision be5419e845d39089ba6dc338c1bd0fa279108317
This commit is contained in:
parent
aa199307c8
commit
2b6f573eb5
3440 changed files with 109438 additions and 41750 deletions
|
@ -207,6 +207,20 @@ promise_test(t => {
|
|||
|
||||
}, 'ReadableStream teeing: failing to cancel the original stream should cause cancel() to reject on branches');
|
||||
|
||||
test(t => {
|
||||
|
||||
let controller;
|
||||
const stream = new ReadableStream({ start(c) { controller = c; } });
|
||||
const [branch1, branch2] = stream.tee();
|
||||
|
||||
const promise = controller.error("error");
|
||||
|
||||
branch1.cancel().catch(_=>_);
|
||||
branch2.cancel().catch(_=>_);
|
||||
|
||||
return promise;
|
||||
}, 'ReadableStream teeing: erroring a teed stream should properly handle canceled branches');
|
||||
|
||||
promise_test(() => {
|
||||
|
||||
let controller;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue