mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
Update web-platform-tests to revision b'099ab08227717e000b444ff560e93f96b49e05d7'
This commit is contained in:
parent
53570ffe55
commit
a1db4c746d
172 changed files with 12261 additions and 2279 deletions
|
@ -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.`);
|
||||
});
|
||||
|
Binary file not shown.
|
@ -0,0 +1,2 @@
|
|||
Content-type: application/octet-stream
|
||||
Content-Encoding: gzip
|
Binary file not shown.
|
@ -0,0 +1,2 @@
|
|||
Content-type: text/plain
|
||||
Content-Encoding: gzip
|
Loading…
Add table
Add a link
Reference in a new issue