Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

// META: script=/fetch/orb/resources/utils.js
expected_block(
`${path}/data.json`,
(orb_test, message) => promise_test(
t => orb_test(t, contentType("application/json"), "status(206)"),
message("ORB should block opaque-response-blocklisted MIME type with status 206")));
expected_block(
`${path}/data.json`,
(orb_test, message) =>
promise_test(
t => orb_test(t, contentType("application/json"), "status(302)"),
message("ORB should block opaque response with non-ok status")));