Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /fetch/content-encoding/zstd/big-window-zstd-body.tentative.https.any.html - WPT Dashboard Interop Dashboard
- /fetch/content-encoding/zstd/big-window-zstd-body.tentative.https.any.serviceworker.html - WPT Dashboard Interop Dashboard
- /fetch/content-encoding/zstd/big-window-zstd-body.tentative.https.any.sharedworker.html - WPT Dashboard Interop Dashboard
- /fetch/content-encoding/zstd/big-window-zstd-body.tentative.https.any.worker.html - WPT Dashboard Interop Dashboard
// META: global=window,worker
// standardizing window size limits.
promise_test(async t => {
const response = await fetch('resources/big.window.zst');
assert_true(response.ok);
await promise_rejects_js(t, TypeError, response.text());
}, 'Consuming the body of a resource with too large of a zstd window size should reject');