tor-browser

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

test_redirect_ref.html (668B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <title> Bug 1234575 - Test redirect ref</title>
      5  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      6  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
      7 </head>
      8 <body>
      9 
     10 <pre id="test">
     11 <script type="text/javascript">
     12 
     13 SimpleTest.waitForExplicitFinish();
     14 
     15 var iframe = document.createElement("iframe");
     16 iframe.addEventListener("load", finishTest);
     17 iframe.src = "redirect.sjs#start";
     18 document.body.appendChild(iframe);
     19 
     20 function finishTest() {
     21  is(iframe.contentWindow.location.href, "http://mochi.test:8888/tests/netwerk/test/mochitests/empty.html#");
     22  SimpleTest.finish();
     23 }
     24 
     25 </script>
     26 
     27 </body>
     28 </html>