tor-browser

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

mixed-content-import.https.html (815B)


      1 <!doctype html>
      2 <meta charset=utf-8>
      3 <title>Attempt to load a mixed content module graph</title>
      4 <script src=/resources/testharness.js></script>
      5 <script src=/resources/testharnessreport.js></script>
      6 <script>
      7  setup({allow_uncaught_exception: true});
      8  var test = async_test("Attempt to load a mixed content module graph")
      9  window.addEventListener("error", testNoError);
     10  function scriptError() {
     11    // An error is expected
     12    test.done();
     13  }
     14  function scriptLoaded() {
     15    test.step(() => assert_unreached("Should not load"));
     16    test.done();
     17  }
     18  function testNoError() {
     19    test.step(() => assert_unreached("No event expected here"));
     20    test.done();
     21  }
     22 </script>
     23 <script type="module"
     24        onerror="scriptError()"
     25        onload="scriptLoaded()"
     26        src="./support/mixed_import.js">
     27 </script>