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

      assert_equals(href, document.URL, "href");

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