Update web-platform-tests to revision b'b728032f59a396243864b0f8584e7211e3632005'

This commit is contained in:
WPT Sync Bot 2022-11-10 01:22:36 +00:00
parent ace9b32b1c
commit df68c4e5d1
15632 changed files with 514865 additions and 155000 deletions

View file

@ -4,6 +4,7 @@
const gzipEmptyValue = new Uint8Array([31, 139, 8, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
const deflateEmptyValue = new Uint8Array([120, 156, 3, 0, 0, 0, 0, 1]);
const deflateRawEmptyValue = new Uint8Array([1, 0, 0, 255, 255]);
promise_test(async t => {
const ds = new DecompressionStream('gzip');
@ -28,3 +29,15 @@ promise_test(async t => {
assert_equals(value, undefined, "value should be undefined");
await writePromise;
}, 'decompressing deflate empty input should work');
promise_test(async t => {
const ds = new DecompressionStream('deflate-raw');
const reader = ds.readable.getReader();
const writer = ds.writable.getWriter();
const writePromise = writer.write(deflateRawEmptyValue);
writer.close();
const { value, done } = await reader.read();
assert_true(done, "read() should set done");
assert_equals(value, undefined, "value should be undefined");
await writePromise;
}, 'decompressing deflate-raw empty input should work');