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

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

Issue 478023002: OverscrollController consumes scroll updates only during gesture-nav. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test. Created 6 years, 4 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: content/test/data/overscroll_navigation.html
diff --git a/content/test/data/overscroll_navigation.html b/content/test/data/overscroll_navigation.html
index e4f2500db14b43633cc78235affddd7db70af0e0..fb1d7412a996cee9a756ace29a7fc5b05b131442 100644
--- a/content/test/data/overscroll_navigation.html
+++ b/content/test/data/overscroll_navigation.html
@@ -28,6 +28,8 @@
<script>
+window.touchmoveCount = 0;
+
function get_current() {
if (location.hash.length == 0)
return 0;
@@ -49,10 +51,22 @@ function navigate_prev() {
function touch_start_handler() {
}
+function touch_move_handler() {
+ window.touchmoveCount++;
+}
+
function install_touch_handler() {
document.addEventListener('touchstart', touch_start_handler);
}
+function install_touchmove_handler() {
+ document.addEventListener('touchmove', touch_move_handler);
+}
+
+function reset_touchmove_count() {
+ window.touchmoveCount = 0;
+}
+
function uninstall_touch_handler() {
document.removeEventListener('touchstart', touch_start_handler);
}

Powered by Google App Engine
This is Rietveld 408576698