tor-browser

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

test_dynamicImport_link_failure.html (565B)


      1 <!DOCTYPE html>
      2 <meta charset=utf-8>
      3 <title>Test link failure in import()</title>
      4 <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
      5 <script>
      6  SimpleTest.waitForExplicitFinish();
      7 
      8  // eslint-disable-next-line no-unused-vars
      9  async function testLoaded() {
     10    await import("./import_circular.mjs").then(() => {
     11      ok(false, "Should have thrown a error");
     12    }).catch((_error) => {
     13      ok(true, "Error has been thrown");
     14    }).finally(() => {
     15      SimpleTest.finish();
     16   });
     17  }
     18 </script>
     19 <body onload='testLoaded()'></body>