mirror of
https://github.com/servo/servo.git
synced 2025-06-25 17:44:33 +01:00
22 lines
747 B
HTML
22 lines
747 B
HTML
<!DOCTYPE html>
|
|
<title>Accept: request header in webbundle requests</title>
|
|
<link
|
|
rel="help"
|
|
href="https://github.com/WICG/webpackage/blob/main/explainers/subresource-loading.md"
|
|
/>
|
|
<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>
|