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

Unified Diff: content/test/data/overscroll_navigation.html

Issue 316403004: Test for the fix for history.replaceState navigations submitted earlier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing review feedback. Created 6 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
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/overscroll_navigation.html
diff --git a/content/test/data/overscroll_navigation.html b/content/test/data/overscroll_navigation.html
index 4bde51bfa953cbb515b6bd85af716285166eeb05..12fc696363567ee93bc474eb2f749f6fb58b14e3 100644
--- a/content/test/data/overscroll_navigation.html
+++ b/content/test/data/overscroll_navigation.html
@@ -57,6 +57,14 @@ function uninstall_touch_handler() {
document.removeEventListener('touchstart', touch_start_handler);
}
+function use_replace_state() {
+ window.history.replaceState({}, 'foo');
+}
+
+function use_push_state() {
+ window.history.pushState({}, 'foo2');
+}
+
onload = function() {
window.onhashchange = function() {
document.title = "Title: " + location.hash;
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698