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

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

Issue 1052493004: CL for perf tryjob on mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/top_desktop_sites_2012Q3.py ('k') | tools/run-perf-test.cfg » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/tough_scrolling_cases.py
diff --git a/tools/perf/page_sets/tough_scrolling_cases.py b/tools/perf/page_sets/tough_scrolling_cases.py
index f8ac723047c1a6e23e044dc1d645d75dbe738053..a1c2adfa3b5ff6b1b53c330d40b3fdc9b251f83b 100644
--- a/tools/perf/page_sets/tough_scrolling_cases.py
+++ b/tools/perf/page_sets/tough_scrolling_cases.py
@@ -11,10 +11,9 @@ class ToughScrollingCasesPage(page_module.Page):
super(ToughScrollingCasesPage, self).__init__(url=url, page_set=page_set)
def RunPageInteractions(self, action_runner):
- interaction = action_runner.BeginGestureInteraction(
- 'ScrollAction')
- action_runner.ScrollPage()
- interaction.End()
+ with action_runner.CreateGestureInteraction('ScrollAction'):
+ action_runner.ScrollPage()
+
class ToughFastScrollingCasesPage(page_module.Page):
@@ -27,12 +26,10 @@ class ToughFastScrollingCasesPage(page_module.Page):
self.speed_in_pixels_per_second = speed_in_pixels_per_second
def RunPageInteractions(self, action_runner):
- interaction = action_runner.BeginGestureInteraction(
- 'ScrollAction')
- action_runner.ScrollPage(
- direction='down',
- speed_in_pixels_per_second=self.speed_in_pixels_per_second)
- interaction.End()
+ with action_runner.CreateGestureInteraction('ScrollAction'):
+ action_runner.ScrollPage(
+ direction='down',
+ speed_in_pixels_per_second=self.speed_in_pixels_per_second)
class ToughScrollingCasesPageSet(page_set_module.PageSet):
« no previous file with comments | « tools/perf/page_sets/top_desktop_sites_2012Q3.py ('k') | tools/run-perf-test.cfg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698