tor-browser

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

script_005.html (467B)


      1 <!doctype html>
      2 <title>document.write external script</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 src='005.js'><"+"/script>");
     10  order.push(2);
     11 });
     12 </script>
     13 <script>
     14 order.push(4);
     15 t.step(function() {
     16  assert_array_equals(order, [1,2,3,4]);
     17 });
     18 t.done();
     19 </script>
     20 <div id="log"></div>