tor-browser

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

063.html (859B)


      1 <!DOCTYPE html>
      2 <html><head>
      3  <title> scheduler: cloneNode (deep) of the currently executing script </title>
      4  <script src="/resources/testharness.js"></script>
      5  <script src="/resources/testharnessreport.js"></script>
      6  <script src="testlib/testlib.js"></script>
      7  <script>log('HEAD script');
      8  if( !window.already_cloned ){
      9    window.already_cloned=true;
     10    var script=document.getElementsByTagName('script')[3];
     11    document.getElementsByTagName('head')[0].appendChild( script.cloneNode(true) );
     12  }
     13  </script>
     14 </head>
     15 <body>
     16 
     17  <div id="log">FAILED (This TC requires JavaScript enabled)</div>
     18 
     19  <script type="text/javascript">
     20  log( 'inline script #2' );
     21  var t = async_test()
     22 
     23  function test() {
     24    assert_array_equals(eventOrder, ['HEAD script', 'inline script #2']);
     25    t.done();
     26  }
     27  onload = t.step_func(test);
     28  </script>
     29 
     30 </body></html>