Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / navigation / replacestate-base-no-url-argument.html
blobf729a69a93935a4fb77c2a22dce318855ed526f8
1 <html>
2 <head>
3 <base id="base">
4 <script>
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.waitUntilDone();
10 var url = window.location.href;
11 url = url.slice(0, url.lastIndexOf('/') + 1) + "resources/replacestate-base-no-url-argument.html";
12 document.getElementById("base").href = url;
14 window.onload = function() {
15 if (history.state === null) {
16 window.history.replaceState({ replaced: true }, {});
17 window.history.go(0);
18 } else if (window.testRunner) {
19 testRunner.notifyDone();
23 </script>
24 </head>
25 <body>
26 PASS: Navigation to document URL.
27 </body>
28 </html>