mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Update web-platform-tests to revision 89aa3f42131cce5a77268ddaeb2fab8a2e29c2a6
This commit is contained in:
parent
39963266ae
commit
ea00d34098
392 changed files with 5974 additions and 7614 deletions
|
@ -0,0 +1,15 @@
|
|||
test(() => {
|
||||
const r = new Response(new ReadableStream());
|
||||
// highWaterMark: 0 means that nothing will actually be read from the body.
|
||||
r.body.pipeTo(new WritableStream({}, {highWaterMark: 0}));
|
||||
assert_true(r.bodyUsed, 'bodyUsed should be true');
|
||||
}, 'using pipeTo on Response body should disturb it synchronously');
|
||||
|
||||
test(() => {
|
||||
const r = new Response(new ReadableStream());
|
||||
r.body.pipeThrough({
|
||||
writable: new WritableStream({}, {highWaterMark: 0}),
|
||||
readable: new ReadableStream()
|
||||
});
|
||||
assert_true(r.bodyUsed, 'bodyUsed should be true');
|
||||
}, 'using pipeThrough on Response body should disturb it synchronously');
|
Loading…
Add table
Add a link
Reference in a new issue