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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <title>Title: 0</title> 2 <title>Title: 0</title>
3 <style> 3 <style>
4 4
5 .large { 5 .large {
6 width: 300px; 6 width: 300px;
7 height: 100px; 7 height: 100px;
8 background-color: red; 8 background-color: red;
9 margin: 300px; 9 margin: 300px;
10 } 10 }
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 } 50 }
51 51
52 function install_touch_handler() { 52 function install_touch_handler() {
53 document.addEventListener('touchstart', touch_start_handler); 53 document.addEventListener('touchstart', touch_start_handler);
54 } 54 }
55 55
56 function uninstall_touch_handler() { 56 function uninstall_touch_handler() {
57 document.removeEventListener('touchstart', touch_start_handler); 57 document.removeEventListener('touchstart', touch_start_handler);
58 } 58 }
59 59
60 function use_replace_state() {
61 window.history.replaceState({}, 'foo');
62 }
63
64 function use_push_state() {
65 window.history.pushState({}, 'foo2');
66 }
67
60 onload = function() { 68 onload = function() {
61 window.onhashchange = function() { 69 window.onhashchange = function() {
62 document.title = "Title: " + location.hash; 70 document.title = "Title: " + location.hash;
63 } 71 }
64 } 72 }
65 73
66 </script> 74 </script>
67 75
68 </html> 76 </html>
OLDNEW
« 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