tor-browser

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

136.html (950B)


      1 <!DOCTYPE html>
      2 <html><head>
      3  <title>scheduler: DOM added external SVG script, force-async? </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 <div id="log"></div>
      9 <script>
     10  var t = async_test();
     11 </script>
     12 <svg>
     13 <script>
     14 
     15 var s1 = document.createElement("script");
     16 s1.src = "scripts/include-1.js";
     17 s1.async = false;
     18 
     19 var s = document.createElementNS("http://www.w3.org/2000/svg", "script");
     20 s.setAttributeNS("http://www.w3.org/1999/xlink", "href", "scripts/include-2.js?pipe=trickle(d2)");
     21 
     22 document.getElementsByTagName("svg")[0].appendChild(s);
     23 document.getElementsByTagName("svg")[0].appendChild(s1);
     24 
     25 </script>
     26 </svg>
     27 <script>
     28 onload = t.step_func(function() {
     29  <!-- assumes that the SVg script should be async -->
     30  assert_array_equals(eventOrder, ["external script #1", "external script #2"]);
     31  t.done();
     32 });
     33 </script>