Update web-platform-tests to revision b'099ab08227717e000b444ff560e93f96b49e05d7'

This commit is contained in:
WPT Sync Bot 2022-11-17 01:21:45 +00:00
parent 53570ffe55
commit a1db4c746d
172 changed files with 12261 additions and 2279 deletions

View file

@ -0,0 +1,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.`);
});

View file

@ -0,0 +1,2 @@
Content-type: application/octet-stream
Content-Encoding: gzip

View file

@ -0,0 +1,2 @@
Content-type: text/plain
Content-Encoding: gzip