Chromium Code Reviews| 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> |