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

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

Issue 1157093002: Add smoothness test for hover during trackpad scrolling [perf implications] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pay attention to page_scale_factor. Created 5 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 KeyDesktopMoveCasesPage(page_module.Page): 8 class KeyDesktopMoveCasesPage(page_module.Page):
9 9
10 def __init__(self, url, page_set, name='', credentials=None): 10 def __init__(self, url, page_set, name='', credentials=None):
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 scrollbar_mid_x_right_offset = scrollbar_width_ratio / 2 77 scrollbar_mid_x_right_offset = scrollbar_width_ratio / 2
78 scrollbar_mid_x = 1 - scrollbar_mid_x_right_offset 78 scrollbar_mid_x = 1 - scrollbar_mid_x_right_offset
79 79
80 # The End point of scrollbar (x remains same). 80 # The End point of scrollbar (x remains same).
81 scrollbar_end_mid_y = 1 - scrollbar_start_mid_y 81 scrollbar_end_mid_y = 1 - scrollbar_start_mid_y
82 return scrollbar_mid_x, scrollbar_start_mid_y, scrollbar_end_mid_y 82 return scrollbar_mid_x, scrollbar_start_mid_y, scrollbar_end_mid_y
83 83
84 84
85 class GoogleMapsPage(KeyDesktopMoveCasesPage): 85 class GoogleMapsPage(KeyDesktopMoveCasesPage):
86 86
87 """ Why: productivity, top google properties; Supports drag gesturee """ 87 """ Why: productivity, top google properties; Supports drag gestures """
88 88
89 def __init__(self, page_set): 89 def __init__(self, page_set):
90 super(GoogleMapsPage, self).__init__( 90 super(GoogleMapsPage, self).__init__(
91 url='https://www.google.co.uk/maps/@51.5043968,-0.1526806', 91 url='https://www.google.co.uk/maps/@51.5043968,-0.1526806',
92 page_set=page_set, 92 page_set=page_set,
93 name='Maps') 93 name='Maps')
94 94
95 def RunNavigateSteps(self, action_runner): 95 def RunNavigateSteps(self, action_runner):
96 super(GoogleMapsPage, self).RunNavigateSteps(action_runner) 96 super(GoogleMapsPage, self).RunNavigateSteps(action_runner)
97 action_runner.WaitForElement(selector='.widget-scene-canvas') 97 action_runner.WaitForElement(selector='.widget-scene-canvas')
(...skipping 14 matching lines...) Expand all
112 112
113 """ Special cases for move gesture """ 113 """ Special cases for move gesture """
114 114
115 def __init__(self): 115 def __init__(self):
116 super(KeyDesktopMoveCasesPageSet, self).__init__( 116 super(KeyDesktopMoveCasesPageSet, self).__init__(
117 archive_data_file='data/key_desktop_move_cases.json', 117 archive_data_file='data/key_desktop_move_cases.json',
118 bucket=page_set_module.PARTNER_BUCKET) 118 bucket=page_set_module.PARTNER_BUCKET)
119 119
120 self.AddUserStory(GmailMouseScrollPage(self)) 120 self.AddUserStory(GmailMouseScrollPage(self))
121 self.AddUserStory(GoogleMapsPage(self)) 121 self.AddUserStory(GoogleMapsPage(self))
OLDNEW
« no previous file with comments | « content/renderer/gpu/gpu_benchmarking_extension.cc ('k') | tools/perf/page_sets/tough_scrolling_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698