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

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

Issue 799183002: Rename AddPage -> AddUserStory in tools/perf/page_sets/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 ToughPinchZoomCasesPage(page_module.Page): 8 class ToughPinchZoomCasesPage(page_module.Page):
9 9
10 def __init__(self, url, page_set, name=''): 10 def __init__(self, url, page_set, name=''):
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 class ToughPinchZoomCasesPageSet(page_set_module.PageSet): 243 class ToughPinchZoomCasesPageSet(page_set_module.PageSet):
244 244
245 """ Set of pages that are tricky to pinch-zoom """ 245 """ Set of pages that are tricky to pinch-zoom """
246 246
247 def __init__(self): 247 def __init__(self):
248 super(ToughPinchZoomCasesPageSet, self).__init__( 248 super(ToughPinchZoomCasesPageSet, self).__init__(
249 user_agent_type='desktop', 249 user_agent_type='desktop',
250 archive_data_file='data/tough_pinch_zoom_cases.json', 250 archive_data_file='data/tough_pinch_zoom_cases.json',
251 bucket=page_set_module.PARTNER_BUCKET) 251 bucket=page_set_module.PARTNER_BUCKET)
252 252
253 self.AddPage(GoogleSearchPage(self)) 253 self.AddUserStory(GoogleSearchPage(self))
254 self.AddPage(GmailPage(self)) 254 self.AddUserStory(GmailPage(self))
255 self.AddPage(GoogleCalendarPage(self)) 255 self.AddUserStory(GoogleCalendarPage(self))
256 self.AddPage(GoogleImageSearchPage(self)) 256 self.AddUserStory(GoogleImageSearchPage(self))
257 self.AddPage(GooglePlusPage(self)) 257 self.AddUserStory(GooglePlusPage(self))
258 self.AddPage(YoutubePage(self)) 258 self.AddUserStory(YoutubePage(self))
259 self.AddPage(BlogSpotPage(self)) 259 self.AddUserStory(BlogSpotPage(self))
260 self.AddPage(FacebookPage(self)) 260 self.AddUserStory(FacebookPage(self))
261 self.AddPage(LinkedinPage(self)) 261 self.AddUserStory(LinkedinPage(self))
262 self.AddPage(WikipediaPage(self)) 262 self.AddUserStory(WikipediaPage(self))
263 self.AddPage(TwitterPage(self)) 263 self.AddUserStory(TwitterPage(self))
264 self.AddPage(ESPNPage(self)) 264 self.AddUserStory(ESPNPage(self))
265 265
266 # Why: #1 news worldwide (Alexa global) 266 # Why: #1 news worldwide (Alexa global)
267 self.AddPage(ToughPinchZoomCasesPage('http://news.yahoo.com', self)) 267 self.AddUserStory(ToughPinchZoomCasesPage('http://news.yahoo.com', self))
268 268
269 # Why: #2 news worldwide 269 # Why: #2 news worldwide
270 self.AddPage(ToughPinchZoomCasesPage('http://www.cnn.com', self)) 270 self.AddUserStory(ToughPinchZoomCasesPage('http://www.cnn.com', self))
271 271
272 self.AddPage(WeatherDotComPage(self)) 272 self.AddUserStory(WeatherDotComPage(self))
273 273
274 # Why: #1 world commerce website by visits; #3 commerce in the US by time 274 # Why: #1 world commerce website by visits; #3 commerce in the US by time
275 # spent 275 # spent
276 self.AddPage(ToughPinchZoomCasesPage('http://www.amazon.com', self)) 276 self.AddUserStory(ToughPinchZoomCasesPage('http://www.amazon.com', self))
277 277
278 # Why: #1 commerce website by time spent by users in US 278 # Why: #1 commerce website by time spent by users in US
279 self.AddPage(ToughPinchZoomCasesPage('http://www.ebay.com', self)) 279 self.AddUserStory(ToughPinchZoomCasesPage('http://www.ebay.com', self))
280 280
281 self.AddPage(YahooGamePage(self)) 281 self.AddUserStory(YahooGamePage(self))
282 282
283 # Why: #1 Alexa recreation 283 # Why: #1 Alexa recreation
284 self.AddPage(ToughPinchZoomCasesPage('http://booking.com', self)) 284 self.AddUserStory(ToughPinchZoomCasesPage('http://booking.com', self))
285 285
286 self.AddPage(YahooAnswersPage(self)) 286 self.AddUserStory(YahooAnswersPage(self))
287 287
288 # Why: #1 Alexa sports 288 # Why: #1 Alexa sports
289 self.AddPage(ToughPinchZoomCasesPage('http://sports.yahoo.com/', self)) 289 self.AddUserStory(ToughPinchZoomCasesPage('http://sports.yahoo.com/', self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/tough_memory_multi_tab.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