tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

basic.html (1078B)


      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" onerror="log.push('onerror 1')">
      9 {
     10  "imports": {
     11    "../resources/log.js?pipe=sub&name=A1": "../resources/log.js?pipe=sub&name=B1",
     12    "../resources/log.js?pipe=sub&name=A2": "../resources/log.js?pipe=sub&name=B2"
     13  }
     14 }
     15 </script>
     16 <script type="importmap" onerror="log.push('onerror 2')">
     17 {
     18  "imports": {
     19    "../resources/log.js?pipe=sub&name=A1": "../resources/log.js?pipe=sub&name=C1",
     20    "../resources/log.js?pipe=sub&name=A3": "../resources/log.js?pipe=sub&name=C3"
     21  }
     22 }
     23 </script>
     24 <script>
     25 promise_test(() => {
     26  return import("../resources/log.js?pipe=sub&name=A1")
     27    .then(() => import("../resources/log.js?pipe=sub&name=A2"))
     28    .then(() => import("../resources/log.js?pipe=sub&name=A3"))
     29    .then(() => assert_array_equals(
     30                    log,
     31                    ["log:B1", "log:B2", "log:C3"]))
     32  },
     33  "Second import map should be used for resolution");
     34 </script>