mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Update web-platform-tests to revision ac16628eb7eb601957382053011363d2bcf8ce44
This commit is contained in:
parent
ea7e753cea
commit
7e7c8873e4
4408 changed files with 664787 additions and 857286 deletions
|
@ -46,8 +46,8 @@ for (const chunk of badChunks) {
|
|||
const writer = cs.writable.getWriter();
|
||||
const writePromise = writer.write(chunk.value);
|
||||
const readPromise = reader.read();
|
||||
await promise_rejects(t, new TypeError(), writePromise, 'write should reject');
|
||||
await promise_rejects(t, new TypeError(), readPromise, 'read should reject');
|
||||
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 gzip`);
|
||||
|
||||
promise_test(async t => {
|
||||
|
@ -56,7 +56,7 @@ for (const chunk of badChunks) {
|
|||
const writer = cs.writable.getWriter();
|
||||
const writePromise = writer.write(chunk.value);
|
||||
const readPromise = reader.read();
|
||||
await promise_rejects(t, new TypeError(), writePromise, 'write should reject');
|
||||
await promise_rejects(t, new TypeError(), readPromise, 'read should reject');
|
||||
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`);
|
||||
}
|
||||
|
|
|
@ -54,8 +54,8 @@ for (const chunk of badChunks) {
|
|||
const writer = ds.writable.getWriter();
|
||||
const writePromise = writer.write(chunk.value);
|
||||
const readPromise = reader.read();
|
||||
await promise_rejects(t, new TypeError(), writePromise, 'write should reject');
|
||||
await promise_rejects(t, new TypeError(), readPromise, 'read should reject');
|
||||
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 gzip`);
|
||||
|
||||
promise_test(async t => {
|
||||
|
@ -64,7 +64,7 @@ for (const chunk of badChunks) {
|
|||
const writer = ds.writable.getWriter();
|
||||
const writePromise = writer.write(chunk.value);
|
||||
const readPromise = reader.read();
|
||||
await promise_rejects(t, new TypeError(), writePromise, 'write should reject');
|
||||
await promise_rejects(t, new TypeError(), readPromise, 'read should reject');
|
||||
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`);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue