tor-browser

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

092.html (895B)


      1 <!DOCTYPE html>
      2 <html><head>
      3        <title> scheduler: defer script and slow-loading non-async external script</title>
      4        <script src="/resources/testharness.js"></script>
      5        <script src="/resources/testharnessreport.js"></script>
      6        <script src="testlib/testlib.js"></script>
      7 </head>
      8 <body>
      9 
     10        <div id="log">FAILED (This TC requires JavaScript enabled)</div>
     11 
     12        <script>
     13          var t = async_test();
     14 
     15          var script = document.createElement("script");
     16          script.src = "scripts/include-2.js?pipe=trickle(d2)";
     17          script.async = false;
     18          document.head.appendChild(script);
     19 
     20          onload = t.step_func(function() {
     21            assert_array_equals(eventOrder, ['external script #1', 'external script #2']);
     22            t.done();
     23          });
     24        </script>
     25        <script defer src="scripts/include-1.js"></script>
     26 </body></html>