tor-browser

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

script_002.html (487B)


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