Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Unified Diff: LayoutTests/http/tests/navigation/replacestate-base-no-url-argument.html

Issue 26216003: Fix History.{push,replace}State handling of null 'url' argument (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/navigation/replacestate-base-no-url-argument-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/http/tests/navigation/replacestate-base-no-url-argument-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698