| <!DOCTYPE html> |
| <title>Request's destination must be "webbundle" with the script-based API</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> |
| |
| <script> |
| window.TEST_WEB_BUNDLE_ELEMENT_TYPE = 'script'; |
| setup(() => { |
| assert_true(HTMLScriptElement.supports('webbundle')); |
| }); |
| </script> |
| <body> |
| <script src="resources/request-destination-test.sub.js"></script> |
| </body> |