tor-browser

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

test_bug1745638.html (980B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>bug 1745638</title>
      6  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      7  <link rel="stylesheet" href="/tests/SimpleTest/test.css"/>
      8  <script>
      9  // This test triggers an assertion in the old session history
     10  // implementation.
     11  SimpleTest.expectAssertions(0, 1);
     12 
     13  SimpleTest.waitForExplicitFinish();
     14  var testWindow;
     15  var loadCount = 0;
     16  function test() {
     17    testWindow = window.open("file_bug1745638.html");
     18  }
     19 
     20  function pageLoaded() {
     21    ++loadCount;
     22    is(testWindow.document.getElementById('testFrame').contentDocument.body.innerHTML,
     23       "passed",
     24       "Iframe's textual content should be 'passed'.");
     25    if (loadCount == 1) {
     26      testWindow.history.go(0);
     27    } else {
     28      testWindow.close();
     29      SimpleTest.finish();
     30    }
     31  }
     32 
     33  </script>
     34 </head>
     35 <body onload="test()">
     36 <p id="display"></p>
     37 <div id="content" style="display: none"></div>
     38 <pre id="test"></pre>
     39 </body>
     40 </html>