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

Unified Diff: tools/telemetry/telemetry/page/actions/scroll_bounce.py

Issue 277143003: Add NavigateToPage API for action_runner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 7 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: tools/telemetry/telemetry/page/actions/scroll_bounce.py
diff --git a/tools/telemetry/telemetry/page/actions/scroll_bounce.py b/tools/telemetry/telemetry/page/actions/scroll_bounce.py
index 755a1f343174ac61c0e71b3128f7ae018fe5a6e4..6bdd25f212fff3823aca1949b311f277fd16301f 100644
--- a/tools/telemetry/telemetry/page/actions/scroll_bounce.py
+++ b/tools/telemetry/telemetry/page/actions/scroll_bounce.py
@@ -10,7 +10,7 @@ class ScrollBounceAction(GestureAction):
def __init__(self, attributes=None):
super(ScrollBounceAction, self).__init__(attributes)
- def WillRunAction(self, page, tab):
+ def WillRunAction(self, tab):
for js_file in ['gesture_common.js', 'scroll_bounce.js']:
with open(os.path.join(os.path.dirname(__file__), js_file)) as f:
js = f.read()
@@ -39,7 +39,7 @@ class ScrollBounceAction(GestureAction):
window.__scrollBounceAction = new __ScrollBounceAction(%s);"""
% (done_callback))
- def RunGesture(self, page, tab):
+ def RunGesture(self, tab):
left_start_percentage = 0.5
top_start_percentage = 0.5
direction = 'down'
« no previous file with comments | « tools/telemetry/telemetry/page/actions/scroll.py ('k') | tools/telemetry/telemetry/page/actions/scroll_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698