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

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

Issue 1198823004: Update perf page_set to use story_set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 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 import story
5 from telemetry.page import page as page_module
4 from telemetry.page import shared_page_state 6 from telemetry.page import shared_page_state
5 from telemetry.page import page as page_module
6 from telemetry.page import page_set as page_set_module
7 7
8 8
9 class ToughPinchZoomCasesPage(page_module.Page): 9 class ToughPinchZoomCasesPage(page_module.Page):
10 10
11 def __init__(self, url, page_set, name=''): 11 def __init__(self, url, page_set, name=''):
12 super(ToughPinchZoomCasesPage, self).__init__( 12 super(ToughPinchZoomCasesPage, self).__init__(
13 url=url, page_set=page_set, name=name, 13 url=url, page_set=page_set, name=name,
14 shared_page_state_class=shared_page_state.SharedDesktopPageState, 14 shared_page_state_class=shared_page_state.SharedDesktopPageState,
15 credentials_path = 'data/credentials.json') 15 credentials_path = 'data/credentials.json')
16 self.archive_data_file = 'data/tough_pinch_zoom_cases.json' 16 self.archive_data_file = 'data/tough_pinch_zoom_cases.json'
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 def __init__(self, page_set): 227 def __init__(self, page_set):
228 super(YahooAnswersPage, self).__init__( 228 super(YahooAnswersPage, self).__init__(
229 url='http://answers.yahoo.com', 229 url='http://answers.yahoo.com',
230 page_set=page_set) 230 page_set=page_set)
231 231
232 def RunPageInteractions(self, action_runner): 232 def RunPageInteractions(self, action_runner):
233 with action_runner.CreateGestureInteraction('PinchAction'): 233 with action_runner.CreateGestureInteraction('PinchAction'):
234 action_runner.PinchElement(selector='#ya-content-apps') 234 action_runner.PinchElement(selector='#ya-content-apps')
235 235
236 236
237 class ToughPinchZoomCasesPageSet(page_set_module.PageSet): 237 class ToughPinchZoomCasesPageSet(story.StorySet):
238 238
239 """ Set of pages that are tricky to pinch-zoom """ 239 """ Set of pages that are tricky to pinch-zoom """
240 240
241 def __init__(self): 241 def __init__(self):
242 super(ToughPinchZoomCasesPageSet, self).__init__( 242 super(ToughPinchZoomCasesPageSet, self).__init__(
243 archive_data_file='data/tough_pinch_zoom_cases.json', 243 archive_data_file='data/tough_pinch_zoom_cases.json',
244 bucket=page_set_module.PARTNER_BUCKET) 244 cloud_storage_bucket=story.PARTNER_BUCKET)
245 245
246 self.AddUserStory(GoogleSearchPage(self)) 246 self.AddUserStory(GoogleSearchPage(self))
247 self.AddUserStory(GmailPage(self)) 247 self.AddUserStory(GmailPage(self))
248 self.AddUserStory(GoogleCalendarPage(self)) 248 self.AddUserStory(GoogleCalendarPage(self))
249 self.AddUserStory(GoogleImageSearchPage(self)) 249 self.AddUserStory(GoogleImageSearchPage(self))
250 self.AddUserStory(GooglePlusPage(self)) 250 self.AddUserStory(GooglePlusPage(self))
251 self.AddUserStory(YoutubePage(self)) 251 self.AddUserStory(YoutubePage(self))
252 self.AddUserStory(BlogSpotPage(self)) 252 self.AddUserStory(BlogSpotPage(self))
253 self.AddUserStory(FacebookPage(self)) 253 self.AddUserStory(FacebookPage(self))
254 self.AddUserStory(LinkedinPage(self)) 254 self.AddUserStory(LinkedinPage(self))
(...skipping 18 matching lines...) Expand all
273 273
274 self.AddUserStory(YahooGamePage(self)) 274 self.AddUserStory(YahooGamePage(self))
275 275
276 # Why: #1 Alexa recreation 276 # Why: #1 Alexa recreation
277 self.AddUserStory(ToughPinchZoomCasesPage('http://booking.com', self)) 277 self.AddUserStory(ToughPinchZoomCasesPage('http://booking.com', self))
278 278
279 self.AddUserStory(YahooAnswersPage(self)) 279 self.AddUserStory(YahooAnswersPage(self))
280 280
281 # Why: #1 Alexa sports 281 # Why: #1 Alexa sports
282 self.AddUserStory(ToughPinchZoomCasesPage('http://sports.yahoo.com/', self)) 282 self.AddUserStory(ToughPinchZoomCasesPage('http://sports.yahoo.com/', self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/tough_path_rendering_cases.py ('k') | tools/perf/page_sets/tough_scheduling_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698