summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/web-bundle/subresource-loading/accept-header.https.tentative.html
blob: 68b13e53c662f9c9e56bb9a72f0cd1aa00a46182 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!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>