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

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

Issue 985603003: Adding telemetry test for page scroll using scrollbar drag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated action_runner. Created 5 years, 9 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/action_runner.py
diff --git a/tools/telemetry/telemetry/page/actions/action_runner.py b/tools/telemetry/telemetry/page/actions/action_runner.py
index 8b1f28575c3ea057dba76da733e5d81831cfff2a..f4a921856cd8282dbf6a2a167ab7c42211265bc0 100644
--- a/tools/telemetry/telemetry/page/actions/action_runner.py
+++ b/tools/telemetry/telemetry/page/actions/action_runner.py
@@ -241,7 +241,8 @@ class ActionRunner(object):
selector=selector, text=text, element_function=element_function))
def DragPage(self, left_start_ratio, top_start_ratio, left_end_ratio,
- top_end_ratio, speed_in_pixels_per_second=800, use_touch=False):
+ top_end_ratio, speed_in_pixels_per_second=800, use_touch=False,
+ selector=None, text=None, element_function=None):
"""Perform a drag gesture on the page.
You should specify a start and an end point in ratios of page width and
@@ -267,7 +268,8 @@ class ActionRunner(object):
left_start_ratio=left_start_ratio, top_start_ratio=top_start_ratio,
left_end_ratio=left_end_ratio, top_end_ratio=top_end_ratio,
speed_in_pixels_per_second=speed_in_pixels_per_second,
- use_touch=use_touch))
+ use_touch=use_touch, selector=selector, text=text,
+ element_function=element_function))
def PinchPage(self, left_anchor_ratio=0.5, top_anchor_ratio=0.5,
scale_factor=None, speed_in_pixels_per_second=800):
« tools/perf/page_sets/top_25_smooth.py ('K') | « tools/perf/page_sets/top_25_smooth.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698