tor-browser

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

script_004.html (550B)


      1 <!doctype html>
      2 <title>document.write script writing script; order of execution</title>
      3 <script src="/resources/testharness.js"></script><script src="/resources/testharnessreport.js"></script>
      4 <script>
      5 var t = async_test();
      6 var order = [];
      7 t.step(function() {
      8  order.push(1);
      9  document.write("<script>order.push(2); document.write('<script>order.push(3);</script'+'>'); order.push(4);<"+"/script>");
     10  order.push(5);
     11 });
     12 </script>
     13 <script>
     14 t.step(function() {
     15  assert_array_equals(order, [1,2,3,4,5]);
     16 });
     17 t.done();
     18 </script>
     19 <div id="log"></div>