Automatic update from web-platform-tests Remove ShadowRealm test coverage This intentionally does not make infrastructure or documentation changes, but without implementer support all the ShadowRealm tests add significant noise. Once there is implementer support this can be reverted. -- wpt-commits: e4a4672e9e607fc2b28e7173b83ce4e38ef53071 wpt-pr: 59794
17 lines
574 B
JavaScript
17 lines
574 B
JavaScript
// META: global=window,worker
|
|
// META: script=resources/decompression-input.js
|
|
|
|
'use strict';
|
|
|
|
for (const [format, chunkValue] of compressedBytes) {
|
|
promise_test(async t => {
|
|
const ds = new DecompressionStream(format);
|
|
const reader = ds.readable.getReader();
|
|
const writer = ds.writable.getWriter();
|
|
const writePromise = writer.write(chunkValue);
|
|
const { value } = await reader.read();
|
|
assert_equals(value.constructor, Uint8Array, "type should match");
|
|
await writePromise;
|
|
}, `decompressing ${format} output should give Uint8Array chunks`);
|
|
}
|