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

Side by Side Diff: tools/perf/page_sets/key_mobile_sites.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
« no previous file with comments | « tools/perf/page_sets/key_hit_test_cases.py ('k') | tools/perf/page_sets/key_search_mobile.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 KeyMobileSitesPage(page_module.Page): 8 class KeyMobileSitesPage(page_module.Page):
9 9
10 def __init__(self, url, page_set, name='', labels=None): 10 def __init__(self, url, page_set, name='', labels=None):
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 305
306 """ Key mobile sites """ 306 """ Key mobile sites """
307 307
308 def __init__(self): 308 def __init__(self):
309 super(KeyMobileSitesPageSet, self).__init__( 309 super(KeyMobileSitesPageSet, self).__init__(
310 user_agent_type='mobile', 310 user_agent_type='mobile',
311 archive_data_file='data/key_mobile_sites.json', 311 archive_data_file='data/key_mobile_sites.json',
312 bucket=page_set_module.PARTNER_BUCKET) 312 bucket=page_set_module.PARTNER_BUCKET)
313 313
314 314
315 self.AddPage(CapitolVolkswagenPage(self)) 315 self.AddUserStory(CapitolVolkswagenPage(self))
316 self.AddPage(TheVergePage(self)) 316 self.AddUserStory(TheVergePage(self))
317 self.AddPage(CnnPage(self)) 317 self.AddUserStory(CnnPage(self))
318 self.AddPage(FacebookPage(self)) 318 self.AddUserStory(FacebookPage(self))
319 self.AddPage(YoutubeMobilePage(self)) 319 self.AddUserStory(YoutubeMobilePage(self))
320 self.AddPage(LinkedInPage(self)) 320 self.AddUserStory(LinkedInPage(self))
321 self.AddPage(YahooAnswersPage(self)) 321 self.AddUserStory(YahooAnswersPage(self))
322 self.AddPage(GmailPage(self)) 322 self.AddUserStory(GmailPage(self))
323 # Page behaves non-deterministically, replaced with test version for now. 323 # Page behaves non-deterministically, replaced with test version for now.
324 # self.AddPage(GroupClonedPage(self)) 324 # self.AddUserStory(GroupClonedPage(self))
325 # mean_input_event_latency cannot be tracked correctly for 325 # mean_input_event_latency cannot be tracked correctly for
326 # GroupClonedListImagesPage. 326 # GroupClonedListImagesPage.
327 # See crbug.com/409086. 327 # See crbug.com/409086.
328 # self.AddPage(GroupClonedListImagesPage(self)) 328 # self.AddUserStory(GroupClonedListImagesPage(self))
329 self.AddPage(GoogleNewsMobilePage(self)) 329 self.AddUserStory(GoogleNewsMobilePage(self))
330 self.AddPage(GoogleNewsMobile2Page(self)) 330 self.AddUserStory(GoogleNewsMobile2Page(self))
331 self.AddPage(AmazonNicolasCagePage(self)) 331 self.AddUserStory(AmazonNicolasCagePage(self))
332 332
333 # Why: Top news site. 333 # Why: Top news site.
334 self.AddPage(KeyMobileSitesPage( 334 self.AddUserStory(KeyMobileSitesPage(
335 url='http://nytimes.com/', page_set=self, labels=['fastpath'])) 335 url='http://nytimes.com/', page_set=self, labels=['fastpath']))
336 336
337 # Why: Image-heavy site. 337 # Why: Image-heavy site.
338 self.AddPage(KeyMobileSitesPage( 338 self.AddUserStory(KeyMobileSitesPage(
339 url='http://cuteoverload.com', page_set=self, labels=['fastpath'])) 339 url='http://cuteoverload.com', page_set=self, labels=['fastpath']))
340 340
341 # Why: #11 (Alexa global), google property; some blogger layouts 341 # Why: #11 (Alexa global), google property; some blogger layouts
342 # have infinite scroll but more interesting. 342 # have infinite scroll but more interesting.
343 self.AddPage(KeyMobileSitesPage( 343 self.AddUserStory(KeyMobileSitesPage(
344 url='http://googlewebmastercentral.blogspot.com/', 344 url='http://googlewebmastercentral.blogspot.com/',
345 page_set=self, name='Blogger')) 345 page_set=self, name='Blogger'))
346 346
347 # Why: #18 (Alexa global), Picked an interesting post """ 347 # Why: #18 (Alexa global), Picked an interesting post """
348 self.AddPage(KeyMobileSitesPage( 348 self.AddUserStory(KeyMobileSitesPage(
349 # pylint: disable=C0301 349 # pylint: disable=C0301
350 url='http://en.blog.wordpress.com/2012/09/04/freshly-pressed-editors-picks -for-august-2012/', 350 url='http://en.blog.wordpress.com/2012/09/04/freshly-pressed-editors-picks -for-august-2012/',
351 page_set=self, 351 page_set=self,
352 name='Wordpress')) 352 name='Wordpress'))
353 353
354 # Why: #6 (Alexa) most visited worldwide, picked an interesting page 354 # Why: #6 (Alexa) most visited worldwide, picked an interesting page
355 self.AddPage(KeyMobileSitesPage( 355 self.AddUserStory(KeyMobileSitesPage(
356 url='http://en.wikipedia.org/wiki/Wikipedia', 356 url='http://en.wikipedia.org/wiki/Wikipedia',
357 page_set=self, 357 page_set=self,
358 name='Wikipedia (1 tab)')) 358 name='Wikipedia (1 tab)'))
359 359
360 360
361 # Why: #8 (Alexa global), picked an interesting page 361 # Why: #8 (Alexa global), picked an interesting page
362 # Forbidden (Rate Limit Exceeded) 362 # Forbidden (Rate Limit Exceeded)
363 # self.AddPage(KeyMobileSitesPage( 363 # self.AddUserStory(KeyMobileSitesPage(
364 # url='http://twitter.com/katyperry', page_set=self, name='Twitter')) 364 # url='http://twitter.com/katyperry', page_set=self, name='Twitter'))
365 365
366 # Why: #37 (Alexa global) """ 366 # Why: #37 (Alexa global) """
367 self.AddPage(KeyMobileSitesPage( 367 self.AddUserStory(KeyMobileSitesPage(
368 url='http://pinterest.com', 368 url='http://pinterest.com',
369 page_set=self, 369 page_set=self,
370 name='Pinterest')) 370 name='Pinterest'))
371 371
372 # Why: #1 sports. 372 # Why: #1 sports.
373 # Fails often; crbug.com/249722' 373 # Fails often; crbug.com/249722'
374 # self.AddPage(KeyMobileSitesPage( 374 # self.AddUserStory(KeyMobileSitesPage(
375 # url='http://espn.go.com', page_set=self, name='ESPN')) 375 # url='http://espn.go.com', page_set=self, name='ESPN'))
376 # Why: crbug.com/231413 376 # Why: crbug.com/231413
377 # Doesn't scroll; crbug.com/249736 377 # Doesn't scroll; crbug.com/249736
378 # self.AddPage(KeyMobileSitesPage(url='http://forecast.io', page_set=self)) 378 # self.AddUserStory(KeyMobileSitesPage(
379 # url='http://forecast.io', page_set=self))
379 # Why: crbug.com/169827 380 # Why: crbug.com/169827
380 self.AddPage(KeyMobileSitesPage( 381 self.AddUserStory(KeyMobileSitesPage(
381 url='http://slashdot.org/', page_set=self, labels=['fastpath'])) 382 url='http://slashdot.org/', page_set=self, labels=['fastpath']))
382 383
383 # Why: #5 Alexa news """ 384 # Why: #5 Alexa news """
384 385
385 self.AddPage(KeyMobileSitesPage( 386 self.AddUserStory(KeyMobileSitesPage(
386 url='http://www.reddit.com/r/programming/comments/1g96ve', 387 url='http://www.reddit.com/r/programming/comments/1g96ve',
387 page_set=self, labels=['fastpath'])) 388 page_set=self, labels=['fastpath']))
388 389
389 # Why: Problematic use of fixed position elements """ 390 # Why: Problematic use of fixed position elements """
390 self.AddPage(KeyMobileSitesPage( 391 self.AddUserStory(KeyMobileSitesPage(
391 url='http://www.boingboing.net', page_set=self, labels=['fastpath'])) 392 url='http://www.boingboing.net', page_set=self, labels=['fastpath']))
392 393
393 urls_list = [ 394 urls_list = [
394 # Why: Social; top Google property; Public profile; infinite scrolls. 395 # Why: Social; top Google property; Public profile; infinite scrolls.
395 # pylint: disable=C0301 396 # pylint: disable=C0301
396 'https://plus.google.com/app/basic/110031535020051778989/posts?source=appp romo', 397 'https://plus.google.com/app/basic/110031535020051778989/posts?source=appp romo',
397 # Why: crbug.com/242544 398 # Why: crbug.com/242544
398 ('http://www.androidpolice.com/2012/10/03/rumor-evidence-mounts-that-an-' 399 ('http://www.androidpolice.com/2012/10/03/rumor-evidence-mounts-that-an-'
399 'lg-optimus-g-nexus-is-coming-along-with-a-nexus-phone-certification-' 400 'lg-optimus-g-nexus-is-coming-along-with-a-nexus-phone-certification-'
400 'program/'), 401 'program/'),
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 # Why: Top search engine 435 # Why: Top search engine
435 ('http://www.baidu.com/s?wd=barack+obama&rsv_bp=0&rsv_spt=3&rsv_sug3=9&' 436 ('http://www.baidu.com/s?wd=barack+obama&rsv_bp=0&rsv_spt=3&rsv_sug3=9&'
436 'rsv_sug=0&rsv_sug4=3824&rsv_sug1=3&inputT=4920'), 437 'rsv_sug=0&rsv_sug4=3824&rsv_sug1=3&inputT=4920'),
437 # Why: Top search engine 438 # Why: Top search engine
438 'http://www.bing.com/search?q=sloths', 439 'http://www.bing.com/search?q=sloths',
439 # Why: Good example of poor initial scrolling 440 # Why: Good example of poor initial scrolling
440 'http://ftw.usatoday.com/2014/05/spelling-bee-rules-shenanigans' 441 'http://ftw.usatoday.com/2014/05/spelling-bee-rules-shenanigans'
441 ] 442 ]
442 443
443 for url in urls_list: 444 for url in urls_list:
444 self.AddPage(KeyMobileSitesPage(url, self)) 445 self.AddUserStory(KeyMobileSitesPage(url, self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/key_hit_test_cases.py ('k') | tools/perf/page_sets/key_search_mobile.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698