Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /web-bundle/subresource-loading/accept-header.https.tentative.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Accept: request header in webbundle requests</title>
<link
rel="help"
/>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../resources/test-helpers.js"></script>
<body>
<script>
setup(() => {
assert_true(HTMLScriptElement.supports("webbundle"));
});
promise_test(async () => {
await addWebBundleElementAndWaitForLoad(
"../resources/check-accept-header-and-return-bundle.py",
/*resources=*/ []
);
}, "Accept: header in a request for a bundle should contain application/webbundle MIME type.");
</script>
</body>