Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /fetch/orb/tentative/unknown-mime-type.sub.any.html - WPT Dashboard Interop Dashboard
- /fetch/orb/tentative/unknown-mime-type.sub.any.worker.html - WPT Dashboard Interop Dashboard
// META: script=/fetch/orb/resources/utils.js
expected_allow_fetch(
`${path}/font.ttf`,
(promise, message) =>
promise_test(
t => promise(t, contentType("")),
message("ORB shouldn't block opaque failed missing MIME type (font/ttf)")));
expected_allow_fetch(
`${path}/text.ttf`,
(promise, message) =>
promise_test(
t => promise(t, contentType("")),
message("ORB shouldn't block opaque failed missing MIME type (text/plain)")));
expected_allow_fetch(
`${path}/data.json`,
(promise, message) =>
promise_test(
t => promise(t, contentType("")),
message("ORB shouldn't block opaque failed missing MIME type (application/json)")));
expected_allow(
`${path}/image.png`,
(promise, message) =>
promise_test(
t => promise(t, contentType("")),
message("ORB shouldn't block opaque failed missing MIME type (image/png)")),
{ skip: ["audio", "video", "script"] });
expected_allow(
`${path}/script.js`,
(promise, message) =>
promise_test(
t => promise(t, contentType("")),
message("ORB shouldn't block opaque failed missing MIME type (text/javascript)")),
{ skip: ["image", "audio", "video"] });