OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <base id="base"> |
| 4 <script> |
| 5 if (window.testRunner) { |
| 6 testRunner.dumpAsText(); |
| 7 testRunner.waitUntilDone(); |
| 8 } |
| 9 |
| 10 var url = window.location.href; |
| 11 url = url.slice(0, url.lastIndexOf('/') + 1) + "resources/replacestate-base-no-u
rl-argument.html"; |
| 12 document.getElementById("base").href = url; |
| 13 |
| 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(); |
| 20 } |
| 21 } |
| 22 |
| 23 </script> |
| 24 </head> |
| 25 <body> |
| 26 PASS: Navigation to document URL. |
| 27 </body> |
| 28 </html> |
OLD | NEW |