mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
Bug 1800771
[wpt PR 36978] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=247421, a=testonly
Automatic update from web-platform-tests WebKit export of https://bugs.webkit.org/show_bug.cgi?id=247421 (#36978) -- wpt-commits: 65ff691baccb6685d064fec044e44344488009af wpt-pr: 36978
This commit is contained in:
parent
2279c9f305
commit
f6926f7910
@ -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…
Reference in New Issue
Block a user