| Index: LayoutTests/http/tests/navigation/replacestate-base-no-url-argument.html
|
| diff --git a/LayoutTests/http/tests/navigation/replacestate-base-no-url-argument.html b/LayoutTests/http/tests/navigation/replacestate-base-no-url-argument.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f729a69a93935a4fb77c2a22dce318855ed526f8
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/navigation/replacestate-base-no-url-argument.html
|
| @@ -0,0 +1,28 @@
|
| +<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>
|
|
|