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

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

Issue 572233002: Moving noisy pages (ESPN and LA Times) from key_mobile_sites into tough_scheduling_cases. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moving data to internal bucket in an attempt to fix presubmit issue Created 6 years, 3 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
« no previous file with comments | « tools/perf/page_sets/key_mobile_sites.py ('k') | no next file » | 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 ToughSchedulingCasesPage(page_module.Page): 8 class ToughSchedulingCasesPage(page_module.Page):
9 9
10 def __init__(self, url, page_set): 10 def __init__(self, url, page_set):
11 super(ToughSchedulingCasesPage, self).__init__(url=url, page_set=page_set) 11 super(ToughSchedulingCasesPage, self).__init__(url=url, page_set=page_set)
12 self.credentials_path = 'data/credentials.json'
13 self.user_agent_type = 'mobile'
14 self.archive_data_file = 'data/tough_scheduling_cases.json'
12 15
13 def RunSmoothness(self, action_runner): 16 def RunSmoothness(self, action_runner):
14 interaction = action_runner.BeginGestureInteraction( 17 interaction = action_runner.BeginGestureInteraction(
15 'ScrollAction', is_smooth=True) 18 'ScrollAction', is_smooth=True)
16 action_runner.ScrollPage() 19 action_runner.ScrollPage()
17 interaction.End() 20 interaction.End()
18 21
19 22
20 class Page1(ToughSchedulingCasesPage): 23 class Page1(ToughSchedulingCasesPage):
21 24
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 'ScrollBounceAction', is_smooth=True) 368 'ScrollBounceAction', is_smooth=True)
366 action_runner.ScrollBouncePage() 369 action_runner.ScrollBouncePage()
367 interaction.End() 370 interaction.End()
368 371
369 372
370 class ToughSchedulingCasesPageSet(page_set_module.PageSet): 373 class ToughSchedulingCasesPageSet(page_set_module.PageSet):
371 374
372 """ Tough scheduler latency test cases """ 375 """ Tough scheduler latency test cases """
373 376
374 def __init__(self): 377 def __init__(self):
375 super(ToughSchedulingCasesPageSet, self).__init__() 378 super(ToughSchedulingCasesPageSet, self).__init__(
379 credentials_path='data/credentials.json',
380 user_agent_type='mobile',
381 archive_data_file='data/tough_scheduling_cases.json',
382 bucket=page_set_module.INTERNAL_BUCKET)
376 383
377 # Why: Simple scrolling baseline 384 # Why: Simple scrolling baseline
378 self.AddPage(ToughSchedulingCasesPage( 385 self.AddPage(ToughSchedulingCasesPage(
379 'file://tough_scheduling_cases/simple_text_page.html', 386 'file://tough_scheduling_cases/simple_text_page.html',
380 self)) 387 self))
381 self.AddPage(Page1(self)) 388 self.AddPage(Page1(self))
382 self.AddPage(Page2(self)) 389 self.AddPage(Page2(self))
383 self.AddPage(Page3(self)) 390 self.AddPage(Page3(self))
384 self.AddPage(Page4(self)) 391 self.AddPage(Page4(self))
385 # Disabled until crbug.com/413829 is fixed. 392 # Disabled until crbug.com/413829 is fixed.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 # Why: Scroll bounce with slow handler on desktop, blocks only once until 469 # Why: Scroll bounce with slow handler on desktop, blocks only once until
463 # ACK timeout. 470 # ACK timeout.
464 self.AddPage(EmptyTouchHandlerPage( 471 self.AddPage(EmptyTouchHandlerPage(
465 name='bounce_desktop_slow_handler', 472 name='bounce_desktop_slow_handler',
466 desktop=True, 473 desktop=True,
467 slow_handler=True, 474 slow_handler=True,
468 bounce=True, 475 bounce=True,
469 page_set=self)) 476 page_set=self))
470 # Why: For measuring the latency of scroll-synchronized effects. 477 # Why: For measuring the latency of scroll-synchronized effects.
471 self.AddPage(SynchronizedScrollOffsetPage(page_set=self)) 478 self.AddPage(SynchronizedScrollOffsetPage(page_set=self))
479 # Why: Good examples of poor initial scrolling
480 self.AddPage(ToughSchedulingCasesPage(
481 'http://www.latimes.com',
482 self))
483 self.AddPage(ToughSchedulingCasesPage(
484 'http://m.espn.go.com/nhl/rankings',
485 self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/key_mobile_sites.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698