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

Side by Side Diff: tools/perf/page_sets/tough_scrolling_cases.py

Issue 1013803003: [Telemetry] Remove is_smooth flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix failing test 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 unified diff | Download patch
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 interaction = action_runner.BeginGestureInteraction(
15 'ScrollAction', is_smooth=True) 15 'ScrollAction')
16 action_runner.ScrollPage() 16 action_runner.ScrollPage()
17 interaction.End() 17 interaction.End()
18 18
19 class ToughFastScrollingCasesPage(page_module.Page): 19 class ToughFastScrollingCasesPage(page_module.Page):
20 20
21 def __init__(self, url, name, speed_in_pixels_per_second, page_set): 21 def __init__(self, url, name, speed_in_pixels_per_second, page_set):
22 super(ToughFastScrollingCasesPage, self).__init__( 22 super(ToughFastScrollingCasesPage, self).__init__(
23 url=url, 23 url=url,
24 page_set=page_set, 24 page_set=page_set,
25 name=name, 25 name=name,
26 labels=['fastscrolling']) 26 labels=['fastscrolling'])
27 self.speed_in_pixels_per_second = speed_in_pixels_per_second 27 self.speed_in_pixels_per_second = speed_in_pixels_per_second
28 28
29 def RunPageInteractions(self, action_runner): 29 def RunPageInteractions(self, action_runner):
30 interaction = action_runner.BeginGestureInteraction( 30 interaction = action_runner.BeginGestureInteraction(
31 'ScrollAction', is_smooth=True) 31 'ScrollAction')
32 action_runner.ScrollPage( 32 action_runner.ScrollPage(
33 direction='down', 33 direction='down',
34 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() 35 interaction.End()
36 36
37 class ToughScrollingCasesPageSet(page_set_module.PageSet): 37 class ToughScrollingCasesPageSet(page_set_module.PageSet):
38 38
39 """ 39 """
40 Description: A collection of difficult scrolling tests 40 Description: A collection of difficult scrolling tests
41 """ 41 """
(...skipping 25 matching lines...) Expand all
67 5000, 10000, 15000, 20000, 30000, 40000, 50000, 60000, 75000, 90000 67 5000, 10000, 15000, 20000, 30000, 40000, 50000, 60000, 75000, 90000
68 ] 68 ]
69 69
70 for name in fast_scrolling_page_name_list: 70 for name in fast_scrolling_page_name_list:
71 for speed in fast_scrolling_speed_list: 71 for speed in fast_scrolling_speed_list:
72 self.AddUserStory(ToughFastScrollingCasesPage( 72 self.AddUserStory(ToughFastScrollingCasesPage(
73 'file://tough_scrolling_cases/' + name + '.html', 73 'file://tough_scrolling_cases/' + name + '.html',
74 name + '_' + str(speed).zfill(5) + '_pixels_per_second', 74 name + '_' + str(speed).zfill(5) + '_pixels_per_second',
75 speed, 75 speed,
76 self)) 76 self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/tough_scheduling_cases.py ('k') | tools/perf/page_sets/tough_texture_upload_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698