tor-browser

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

007.html (738B)


      1 <!DOCTYPE html>
      2 <html><head>
      3  <title> scheduler: document.write external</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 <body>
      9 
     10  <div id="log">FAILED (This TC requires JavaScript enabled)</div>
     11 
     12  <script>log('inline script #1');
     13    document.write( '<script src="scripts/include-1.js">log(\'ignore this\')<\/script>' );
     14    log('end script #1');
     15  </script>
     16 
     17  <script type="text/javascript">
     18  var t = async_test()
     19 
     20  function test() {
     21    assert_array_equals(eventOrder, ['inline script #1', 'end script #1', 'external script #1' ]);
     22    t.done();
     23  }
     24  onload = t.step_func(test)
     25  </script>
     26 
     27 </body></html>