tor-browser

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

test_sessionhistory.html (1344B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=
      5 -->
      6 <head>
      7  <title>Test for Bug 462076</title>
      8  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      9  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     10 </head>
     11 <body onload="nextTest()">
     12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=462076">Mozilla Bug 462076</a>
     13 <p id="display"></p>
     14 <div id="content" style="display: none">
     15 
     16 </div>
     17 <pre id="test">
     18  <script type="application/javascript">
     19    var testFiles =
     20      [ "file_bug462076_1.html",         // Dynamic frames before onload
     21        "file_bug462076_2.html",         // Dynamic frames when handling onload
     22        "file_bug462076_3.html",         // Dynamic frames after onload
     23      ];
     24    var testCount = 0; // Used by the test files.
     25 
     26    SimpleTest.waitForExplicitFinish();
     27 
     28    var testWindow;
     29    function nextTest_() {
     30      if (testFiles.length) {
     31        testCount = 0;
     32        let nextFile = testFiles.shift();
     33        info("Running " + nextFile);
     34        testWindow = window.open(nextFile, "", "width=360,height=480");
     35        testWindow.onunload = function() { }; // to prevent bfcache
     36      } else {
     37        SimpleTest.finish();
     38      }
     39    }
     40 
     41    function nextTest() {
     42      setTimeout(nextTest_, 0);
     43    }
     44 
     45  </script>
     46 </pre>
     47 </body>
     48 </html>