Bug 1733595 [wpt PR 31047] - Let <script type=webbundle> WPT fail early if it's not...
[gecko.git] / testing / web-platform / tests / web-bundle / subresource-loading / script-static-element.https.tentative.sub.html
blob8467477fa190e7b7265fa16e09ceb80514b9c686
1 <!DOCTYPE html>
2 <title>WebBundle subresource loading for static elements</title>
3 <link
4 rel="help"
5 href="https://github.com/WICG/webpackage/blob/main/explainers/subresource-loading.md"
6 />
7 <script src="/resources/testharness.js"></script>
8 <script src="/resources/testharnessreport.js"></script>
9 <body>
10 <script type="webbundle">
12 "source": "../resources/wbn/static-element.wbn",
13 "resources": [
14 "https://{{domains[]}}:{{ports[https][0]}}/web-bundle/resources/wbn/static-element/resources/script.js",
15 "https://{{domains[]}}:{{ports[https][0]}}/web-bundle/resources/wbn/static-element/resources/style.css",
16 "https://{{domains[]}}:{{ports[https][0]}}/web-bundle/resources/wbn/static-element/resources/style-imported-from-file.css",
17 "https://{{domains[]}}:{{ports[https][0]}}/web-bundle/resources/wbn/static-element/resources/style-imported-from-tag.css"
19 "scopes": [
20 "https://{{domains[]}}:{{ports[https][0]}}/web-bundle/resources/wbn/static-element/scopes/"
23 </script>
24 <style type="text/css">
25 @import '../resources/wbn/static-element/resources/style-imported-from-tag.css';
26 @import '../resources/wbn/static-element/scopes/style-imported-from-tag.css';
27 </style>
28 <link href="../resources/wbn/static-element/resources/style.css" rel=stylesheet>
29 <link href="../resources/wbn/static-element/scopes/style.css" rel=stylesheet>
30 <script src="../resources/wbn/static-element/resources/script.js"></script>
31 <script src="../resources/wbn/static-element/scopes/script.js"></script>
32 <script src="../resources/wbn/static-element/out-of-scope/script.js"></script>
34 <script>
35 setup(() => {
36 assert_true(HTMLScriptElement.supports('webbundle'));
37 });
38 </script>
39 <script src="resources/static-element-with-test.js"></script>
40 </body>