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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 from telemetry.page import page as page_module 4 from telemetry.page import page as page_module
5 from telemetry.page import page_set as page_set_module 5 from telemetry.page import page_set as page_set_module
6 6
7 7
8 class ToughScrollingCasesPage(page_module.Page): 8 class ToughScrollingCasesPage(page_module.Page):
9 9
10 def __init__(self, url, page_set): 10 def __init__(self, url, page_set):
11 super(ToughScrollingCasesPage, self).__init__(url=url, page_set=page_set) 11 super(ToughScrollingCasesPage, self).__init__(url=url, page_set=page_set)
12 12
13 def RunPageInteractions(self, action_runner): 13 def RunPageInteractions(self, action_runner):
14 interaction = action_runner.BeginGestureInteraction( 14 with action_runner.CreateGestureInteraction('ScrollAction'):
15 'ScrollAction') 15 action_runner.ScrollPage()
16 action_runner.ScrollPage() 16
17 interaction.End()
18 17
19 class ToughFastScrollingCasesPage(page_module.Page): 18 class ToughFastScrollingCasesPage(page_module.Page):
20 19
21 def __init__(self, url, name, speed_in_pixels_per_second, page_set): 20 def __init__(self, url, name, speed_in_pixels_per_second, page_set):
22 super(ToughFastScrollingCasesPage, self).__init__( 21 super(ToughFastScrollingCasesPage, self).__init__(
23 url=url, 22 url=url,
24 page_set=page_set, 23 page_set=page_set,
25 name=name, 24 name=name,
26 labels=['fastscrolling']) 25 labels=['fastscrolling'])
27 self.speed_in_pixels_per_second = speed_in_pixels_per_second 26 self.speed_in_pixels_per_second = speed_in_pixels_per_second
28 27
29 def RunPageInteractions(self, action_runner): 28 def RunPageInteractions(self, action_runner):
30 interaction = action_runner.BeginGestureInteraction( 29 with action_runner.CreateGestureInteraction('ScrollAction'):
31 'ScrollAction') 30 action_runner.ScrollPage(
32 action_runner.ScrollPage( 31 direction='down',
33 direction='down', 32 speed_in_pixels_per_second=self.speed_in_pixels_per_second)
34 speed_in_pixels_per_second=self.speed_in_pixels_per_second)
35 interaction.End()
36 33
37 class ToughScrollingCasesPageSet(page_set_module.PageSet): 34 class ToughScrollingCasesPageSet(page_set_module.PageSet):
38 35
39 """ 36 """
40 Description: A collection of difficult scrolling tests 37 Description: A collection of difficult scrolling tests
41 """ 38 """
42 39
43 def __init__(self): 40 def __init__(self):
44 super(ToughScrollingCasesPageSet, self).__init__() 41 super(ToughScrollingCasesPageSet, self).__init__()
45 42
(...skipping 21 matching lines...) Expand all
67 5000, 10000, 15000, 20000, 30000, 40000, 50000, 60000, 75000, 90000 64 5000, 10000, 15000, 20000, 30000, 40000, 50000, 60000, 75000, 90000
68 ] 65 ]
69 66
70 for name in fast_scrolling_page_name_list: 67 for name in fast_scrolling_page_name_list:
71 for speed in fast_scrolling_speed_list: 68 for speed in fast_scrolling_speed_list:
72 self.AddUserStory(ToughFastScrollingCasesPage( 69 self.AddUserStory(ToughFastScrollingCasesPage(
73 'file://tough_scrolling_cases/' + name + '.html', 70 'file://tough_scrolling_cases/' + name + '.html',
74 name + '_' + str(speed).zfill(5) + '_pixels_per_second', 71 name + '_' + str(speed).zfill(5) + '_pixels_per_second',
75 speed, 72 speed,
76 self)) 73 self))
OLDNEW
« 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