tor-browser

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

location_protocol.html (546B)


      1 <!DOCTYPE HTML>
      2 <html>
      3  <head>
      4    <title>location_protocol</title>
      5    <script src="/resources/testharness.js"></script>
      6    <script src="/resources/testharnessreport.js"></script>
      7  </head>
      8  <body>
      9    <div id="log"></div>
     10    <script>
     11    test(function () {
     12      var protocol = location.protocol;
     13      var url = location.href;
     14 
     15      var pos = url.indexOf("//");
     16      if (pos != -1) {
     17        url = url.substr(0, pos);
     18      }
     19 
     20      assert_equals(protocol, url, "protocol");
     21 
     22    }, "location protocol");
     23    </script>
     24  </body>
     25 </html>