summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/history/the-location-interface/location_pathname.html
blob: dea05d2f37bcb4525a8fee853b274f52d0fbe1d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE HTML>
<html>
  <head>
    <title>location_pathname</title>
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
  </head>
  <body>
    <div id="log"></div>
    <script>
    test(function () {
      var pathname = location.pathname;
      var url = location.href

      url = url.replace(location.protocol + "//" + location.host, "");

      assert_equals(pathname, url, "pathname");

    }, "location pathname");
    </script>
  </body>
</html>