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

Unified Diff: third_party/WebKit/LayoutTests/fast/html/pushstate-ignore-query-file.html

Issue 2060093002: Allow 'history.pushState' to modify query string for unique and file origins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Allow 'history.pushState' to modify query string for unique and file origins. Created 4 years, 6 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
Index: third_party/WebKit/LayoutTests/fast/html/pushstate-ignore-query-file.html
diff --git a/third_party/WebKit/LayoutTests/fast/html/pushstate-ignore-query-file.html b/third_party/WebKit/LayoutTests/fast/html/pushstate-ignore-query-file.html
new file mode 100644
index 0000000000000000000000000000000000000000..e4e4341f9b65df7b077c91642eddd02b1542395a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/html/pushstate-ignore-query-file.html
@@ -0,0 +1,17 @@
+<body>
Mike West 2016/06/14 08:44:59 Please also adjust `LayoutTests/http/tests/navigat
+<script>
+
+if (window.testRunner)
+ testRunner.dumpAsText();
+if(window.location.protocol=="file:") {
Mike West 2016/06/14 08:44:59 Nit: Space between `if` and `(`.
+ try {
+ history.pushState({}, 'dummyTitle', '#foo=bar');
Mike West 2016/06/14 08:44:59 Nit: Indentation.
+ history.pushState({}, 'dummyTitle', '?foo=bar');
Mike West 2016/06/14 08:44:59 Please also add `?foo#bar`.
+ document.write("PASS."+document.URL);
+ } catch(e) {
+ document.write("FAILED.The reason:"+e.message);
+ }
+} else {
+ document.write("FAILED.");
+}
Mike West 2016/06/14 08:44:59 New tests should be written in terms of `testharne
+</script>

Powered by Google App Engine
This is Rietveld 408576698