already-resolved-dropped.html (773B)
1 <!DOCTYPE html> 2 <html> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <script src="/import-maps/resources/test-helper.js"></script> 6 <script> 7 // Simulate resolving a module before import maps are processed 8 import("../resources/log.js?pipe=sub&name=ModuleA").catch(() => {}); 9 </script> 10 <script type="importmap"> 11 { 12 "imports": { 13 "../resources/log.js?pipe=sub&name=ModuleA": "../resources/log.js?pipe=sub&name=ModuleB", 14 "http:/": "../resources/log.js?pipe=sub&name=scheme", 15 "https:/": "../resources/log.js?pipe=sub&name=scheme" 16 } 17 } 18 </script> 19 <script> 20 test_loaded( 21 "../resources/log.js?pipe=sub&name=ModuleA", 22 ["log:ModuleA"], 23 "Rules for already resolved modules are dropped" 24 ); 25 </script> 26 </html>