tor-browser

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

142.html (802B)


      1 <!DOCTYPE html>
      2 <html><head>
      3  <title>scheduler: SVG inline script that document.writes 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 <div id="log"></div>
      9 <script>
     10  var t = async_test();
     11 </script>
     12 <svg>
     13 <script>
     14  t.step(function() {
     15    log('inline script #1');
     16    document.write("<" + "script xlink:href='scripts/include-1.js'><" + "/script>");
     17    log('end inline script #1');
     18  });
     19 </script>
     20 <script>t.step(function() {log("inline script #2")});</script>
     21 </svg>
     22 <script>
     23 onload = t.step_func(function() {
     24  assert_array_equals(eventOrder, ["inline script #1", "end inline script #1", "external script #1", "inline script #2"]);
     25  t.done();
     26 });
     27 </script>