module-map-key.html (560B)
1 <!DOCTYPE html> 2 <html> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <script type="importmap"> 6 { 7 "imports": { 8 "./resources/log.js?pipe=sub&name=A": "./resources/log.js?pipe=sub&name=B" 9 } 10 } 11 </script> 12 <script> 13 const log = []; 14 15 promise_test(() => { 16 return import("./resources/log.js?pipe=sub&name=A") 17 .then(() => import("./resources/log.js?pipe=sub&name=B")) 18 .then(() => assert_array_equals(log, ["log:B"])) 19 }, 20 "Module map's key is the URL after import map resolution"); 21 </script>