summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/history/the-history-interface/history_replacestate.html
blob: 794c2f371304a7c8d05bf9169278f34ac2580de1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE HTML>
<html>
  <head>
    <title>history_replaceState</title>
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
  </head>
  <body>
    <div id="log"></div>
    <script>
    test(function () {
      window.history.replaceState(1, document.title, '?x=1');

      var second;
      second = window.history.state;
      assert_equals(second, 1, "history state");
    }, "history replaceState");
    </script>
  </body>
</html>