tor-browser

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

001.html (837B)


      1 <!--
      2 
      3 /*
      4 -->
      5 <!doctype html>
      6 <title>navigating</title>
      7 <script src="/resources/testharness.js"></script>
      8 <script src="/resources/testharnessreport.js"></script>
      9 <div id=log></div>
     10 <script>
     11 setup({ single_test: true });
     12 var date;
     13 var newDate;
     14 </script>
     15 <iframe></iframe>
     16 <script>
     17 var iframe = document.querySelector('iframe');
     18 onload = function() {
     19  iframe.src = "001-1.html?" + Math.random();
     20 };
     21 var start_test = function() {
     22  window[0].document.links[0].click();
     23 };
     24 var after_load = function(event) {
     25  history.back();
     26  newDate = new Date();
     27  setTimeout(function() {
     28    assert_greater_than(Number(date), Number(newDate));
     29    assert_equals(window[0].document.title, '001-1');
     30    window.removeEventListener("message", after_load);
     31    done();
     32  }, 2000);
     33 };
     34 window.addEventListener("message", after_load);
     35 </script>
     36 <!--
     37 */
     38 //-->