blob: 37758b7d91775fad80cc8297470a4ba18f8928b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// META: global=window,worker
const expectedDecompressedSize = 10500;
[
"text",
"octetstream"
].forEach(contentType => {
promise_test(async t => {
let response = await fetch(`resources/foo.${contentType}.gz`);
assert_true(response.ok);
let arrayBuffer = await response.arrayBuffer()
let u8 = new Uint8Array(arrayBuffer);
assert_equals(u8.length, expectedDecompressedSize);
}, `fetched gzip data with content type ${contentType} should be decompressed.`);
});
|