Bug 1764841 [wpt PR 33647] - Set acquiring import maps to false on <link rel=modulepr...
[gecko.git] / testing / web-platform / tests / import-maps / acquiring / modulepreload-link-header.html
blobdde8cabb9323f0e13e7a28a748fc593bd5d573ce
1 <!DOCTYPE html>
2 <html>
3 <script src="/resources/testharness.js"></script>
4 <script src="/resources/testharnessreport.js"></script>
5 <script>
6 const t = async_test(
7 'With modulepreload link header, import maps should fire error events');
8 const log = [];
9 </script>
10 <script type="importmap" onerror="t.done()">
12 "imports": {
13 "../resources/log.js?pipe=sub&name=A": "../resources/log.js?pipe=sub&name=B"
16 </script>
17 <script>
18 promise_test(() => {
19 return import("../resources/log.js?pipe=sub&name=A")
20 .then(() => assert_array_equals(log, ["log:A"]))
22 'With modulepreload link header, import maps are not effective');
23 </script>