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 }, {});
18 } else if (window
.testRunner
) {
19 testRunner
.notifyDone();
26 PASS: Navigation to document URL.