tor-browser

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

143.html (824B)


      1 <!DOCTYPE html>
      2 <html><head>
      3  <title>scheduler: SVG nested inline script that document.writes inline 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 #3');
     16  });
     17    <script>
     18        log("inline script #1")
     19        document.write("<" + "script>t.step(function() {log('inline script #2')})<" + "/script><" + "/script>");
     20    </script>
     21  t.step(function() {
     22    assert_unreached():
     23  });
     24 </script>
     25 </svg>
     26 <script>
     27 onload = t.step_func(function() {
     28  assert_array_equals(eventOrder, ["inline script #1", "inline script #2", "inline script #3"]);
     29  t.done();
     30 });
     31 </script>