| <html> |
| <head> |
| <base id="base"> |
| <script> |
| if (window.testRunner) { |
| testRunner.dumpAsText(); |
| testRunner.waitUntilDone(); |
| } |
| |
| var url = window.location.href; |
| url = url.slice(0, url.lastIndexOf('/') + 1) + "resources/replacestate-base-no-url-argument.html"; |
| document.getElementById("base").href = url; |
| |
| window.onload = function() { |
| if (history.state === null) { |
| window.history.replaceState({ replaced: true }, {}); |
| window.history.go(0); |
| } else if (window.testRunner) { |
| testRunner.notifyDone(); |
| } |
| } |
| |
| </script> |
| </head> |
| <body> |
| PASS: Navigation to document URL. |
| </body> |
| </html> |