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

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

Issue 2926633002: Explicitly setting story names for all smoothness benchmarks (Closed)
Patch Set: Explicitly setting story names for all smoothness benchmarks Created 3 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 shared_page_state 5 from telemetry.page import shared_page_state
6 from telemetry import story 6 from telemetry import story
7 7
8 8
9 class KeyDesktopMoveCasesPage(page_module.Page): 9 class KeyDesktopMoveCasesPage(page_module.Page):
10 10
11 def __init__(self, url, page_set, name='', credentials=None): 11 def __init__(self, url, page_set, name='', credentials=None):
12 if name == '':
13 name = url
12 super(KeyDesktopMoveCasesPage, self).__init__( 14 super(KeyDesktopMoveCasesPage, self).__init__(
13 url=url, page_set=page_set, name=name, 15 url=url, page_set=page_set, name=name,
14 credentials_path='data/credentials.json', 16 credentials_path='data/credentials.json',
15 shared_page_state_class=shared_page_state.SharedDesktopPageState) 17 shared_page_state_class=shared_page_state.SharedDesktopPageState)
16 self.archive_data_file = 'data/key_desktop_move_cases.json' 18 self.archive_data_file = 'data/key_desktop_move_cases.json'
17 self.credentials = credentials 19 self.credentials = credentials
18 20
19 21
20 class GmailMouseScrollPage(KeyDesktopMoveCasesPage): 22 class GmailMouseScrollPage(KeyDesktopMoveCasesPage):
21 23
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 # TODO(ssid): Add zoom gestures after fixing bug crbug.com/462214. 111 # TODO(ssid): Add zoom gestures after fixing bug crbug.com/462214.
110 112
111 113
112 class KeyDesktopMoveCasesPageSet(story.StorySet): 114 class KeyDesktopMoveCasesPageSet(story.StorySet):
113 115
114 """ Special cases for move gesture """ 116 """ Special cases for move gesture """
115 117
116 def __init__(self): 118 def __init__(self):
117 super(KeyDesktopMoveCasesPageSet, self).__init__( 119 super(KeyDesktopMoveCasesPageSet, self).__init__(
118 archive_data_file='data/key_desktop_move_cases.json', 120 archive_data_file='data/key_desktop_move_cases.json',
119 cloud_storage_bucket=story.PARTNER_BUCKET) 121 cloud_storage_bucket=story.PARTNER_BUCKET,
122 verify_names=True)
120 123
121 self.AddStory(GmailMouseScrollPage(self)) 124 self.AddStory(GmailMouseScrollPage(self))
122 self.AddStory(GoogleMapsPage(self)) 125 self.AddStory(GoogleMapsPage(self))
cblume 2017/06/06 20:10:58 In this case a name is not explicitly specified. I
ashleymarie1 2017/06/06 20:35:00 So what I'm trying to do with all these different
cblume 2017/06/06 21:07:16 Ah okay, I follow. Thank you for the clarification
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698