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

Unified Diff: tools/perf/page_sets/tough_scheduling_cases.py

Issue 346923003: Add ActionRunner wrapper for the remaining less used actions (try 2): (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update unit test to skip test if touch is not supported. Created 6 years, 5 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 | « tools/perf/page_sets/tough_pinch_zoom_cases.py ('k') | tools/perf/page_sets/tough_video_cases.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/tough_scheduling_cases.py
diff --git a/tools/perf/page_sets/tough_scheduling_cases.py b/tools/perf/page_sets/tough_scheduling_cases.py
index d814d56b2785ab61111aa31ae3a5315c020e8ab0..89b3e92fab039c5d4623eae93b104e2ab063e78f 100644
--- a/tools/perf/page_sets/tough_scheduling_cases.py
+++ b/tools/perf/page_sets/tough_scheduling_cases.py
@@ -338,7 +338,10 @@ class EmptyTouchHandlerPage(ToughSchedulingCasesPage):
def RunSmoothness(self, action_runner):
if self.bounce:
- action_runner.RunAction(ScrollBounceAction())
+ interaction = action_runner.BeginGestureInteraction(
+ 'ScrollBounceAction', is_smooth=True)
+ action_runner.ScrollBouncePage()
+ interaction.End()
else:
interaction = action_runner.BeginGestureInteraction(
'ScrollAction', is_smooth=True)
@@ -359,7 +362,10 @@ class SynchronizedScrollOffsetPage(ToughSchedulingCasesPage):
page_set=page_set)
def RunSmoothness(self, action_runner):
- action_runner.RunAction(ScrollBounceAction())
+ interaction = action_runner.BeginGestureInteraction(
+ 'ScrollBounceAction', is_smooth=True)
+ action_runner.ScrollBouncePage()
+ interaction.End()
class ToughSchedulingCasesPageSet(page_set_module.PageSet):
« no previous file with comments | « tools/perf/page_sets/tough_pinch_zoom_cases.py ('k') | tools/perf/page_sets/tough_video_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698