blob: e281ca6f5331cf2d7e6cc1968a6f7679db93d411 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// META: script=/fetch/orb/resources/utils.js
const path = "http://{{domains[www1]}}:{{ports[http][0]}}/fetch/orb/resources";
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")));
|