tor-browser

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

location_pathname.html (516B)


      1 <!DOCTYPE HTML>
      2 <html>
      3  <head>
      4    <title>location_pathname</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 pathname = location.pathname;
     13      var url = location.href
     14 
     15      url = url.replace(location.protocol + "//" + location.host, "");
     16 
     17      assert_equals(pathname, url, "pathname");
     18 
     19    }, "location pathname");
     20    </script>
     21  </body>
     22 </html>