mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision b'b728032f59a396243864b0f8584e7211e3632005'
This commit is contained in:
parent
ace9b32b1c
commit
df68c4e5d1
15632 changed files with 514865 additions and 155000 deletions
|
@ -61,4 +61,14 @@ for (const chunk of badChunks) {
|
|||
await promise_rejects_js(t, TypeError, writePromise, 'write should reject');
|
||||
await promise_rejects_js(t, TypeError, readPromise, 'read should reject');
|
||||
}, `chunk of type ${chunk.name} should error the stream for deflate`);
|
||||
|
||||
promise_test(async t => {
|
||||
const cs = new CompressionStream('deflate-raw');
|
||||
const reader = cs.readable.getReader();
|
||||
const writer = cs.writable.getWriter();
|
||||
const writePromise = writer.write(chunk.value);
|
||||
const readPromise = reader.read();
|
||||
await promise_rejects_js(t, TypeError, writePromise, 'write should reject');
|
||||
await promise_rejects_js(t, TypeError, readPromise, 'read should reject');
|
||||
}, `chunk of type ${chunk.name} should error the stream for deflate-raw`);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue