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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <body>
Mike West 2016/06/14 08:44:59 Please also adjust `LayoutTests/http/tests/navigat
2 <script>
3
4 if (window.testRunner)
5 testRunner.dumpAsText();
6 if(window.location.protocol=="file:") {
Mike West 2016/06/14 08:44:59 Nit: Space between `if` and `(`.
7 try {
8 history.pushState({}, 'dummyTitle', '#foo=bar');
Mike West 2016/06/14 08:44:59 Nit: Indentation.
9 history.pushState({}, 'dummyTitle', '?foo=bar');
Mike West 2016/06/14 08:44:59 Please also add `?foo#bar`.
10 document.write("PASS."+document.URL);
11 } catch(e) {
12 document.write("FAILED.The reason:"+e.message);
13 }
14 } else {
15 document.write("FAILED.");
16 }
Mike West 2016/06/14 08:44:59 New tests should be written in terms of `testharne
17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698