tor-browser

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

135.html (875B)


      1 <!DOCTYPE html>
      2 <html><head>
      3  <title>scheduler: external SVG script added by SVG 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 <div id="log"></div>
      9 <script>
     10  var t = async_test();
     11  log("inline script #1")
     12 </script>
     13 <svg>
     14 <script>
     15 log("inline script #2")
     16 var s = document.createElementNS("http://www.w3.org/2000/svg", "script");
     17 s.setAttributeNS("http://www.w3.org/1999/xlink", "href", "scripts/include-1.js");
     18 document.getElementsByTagName("svg")[0].appendChild(s);
     19 log("end inline script #2");
     20 </script>
     21 </svg>
     22 <script>
     23 onload = t.step_func(function() {
     24  assert_array_equals(eventOrder, ["inline script #1", "inline script #2",
     25                                   "end inline script #2", "external script #1"]);
     26  t.done();
     27 });
     28 </script>