tor-browser

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

014.html (780B)


      1 <!DOCTYPE html>
      2 <html><head>
      3  <title> scheduler: SCRIPT elements that move themselves in DOM </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.getElementsByTagName('head')[0].appendChild(document.getElementsByTagName('script')[2]);
     14    log('end script #1');
     15  </script>
     16 
     17  <script type="text/javascript">
     18  log('script #2');
     19  var t = async_test()
     20 
     21  function test() {
     22    assert_array_equals(eventOrder, ['inline script #1', 'end script #1', 'script #2']);
     23    t.done();
     24  }
     25  onload = t.step_func(test)
     26  </script>
     27 
     28 </body></html>