url-resolution-conflict.html (675B)
1 <!DOCTYPE html> 2 <html> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <script> 6 const log = []; 7 </script> 8 <script type="importmap"> 9 { 10 "scopes": { 11 "/": { 12 "../resources/../resources/app.js": "../resources/log.js?pipe=sub&name=first" 13 } 14 } 15 } 16 </script> 17 <script type="importmap"> 18 { 19 "scopes": { 20 "/": { 21 "../resources/app.js": "../resources/log.js?pipe=sub&name=second" 22 } 23 } 24 } 25 </script> 26 <script type="module"> 27 promise_test(async () => { 28 await import("../resources/app.js"); 29 assert_array_equals(log, ["log:first"]); 30 }, 31 "Second import map should not override same resolved URL"); 32 </script>