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

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

Issue 2178573002: CL for perf tryjob on android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « testing/variations/fieldtrial_testing_config_win.json ('k') | tools/run-perf-test.cfg » ('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 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 KeySilkCasesPage(page_module.Page): 9 class KeySilkCasesPage(page_module.Page):
10 10
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 url='http://s.codepen.io/befamous/fullpage/pFsqb?scroll', 553 url='http://s.codepen.io/befamous/fullpage/pFsqb?scroll',
554 page_set=page_set, run_no_page_interactions=run_no_page_interactions) 554 page_set=page_set, run_no_page_interactions=run_no_page_interactions)
555 555
556 def RunNavigateSteps(self, action_runner): 556 def RunNavigateSteps(self, action_runner):
557 super(Page26, self).RunNavigateSteps(action_runner) 557 super(Page26, self).RunNavigateSteps(action_runner)
558 action_runner.WaitForJavaScriptCondition( 558 action_runner.WaitForJavaScriptCondition(
559 'document.getElementsByClassName("tweet").length > 0') 559 'document.getElementsByClassName("tweet").length > 0')
560 action_runner.Wait(1) 560 action_runner.Wait(1)
561 561
562 def PerformPageInteractions(self, action_runner): 562 def PerformPageInteractions(self, action_runner):
563 # add a passive: false listener to disable the root scroller intervention
564 action_runner.ExecuteJavaScript('''
565 window.addEventListener("touchstart", function(e) {}, {passive: false}
566 );''')
563 with action_runner.CreateGestureInteraction('ScrollAction'): 567 with action_runner.CreateGestureInteraction('ScrollAction'):
564 action_runner.ScrollPage(distance=5000) 568 action_runner.ScrollPage(distance=5000)
565 569
566 570
567 class SVGIconRaster(KeySilkCasesPage): 571 class SVGIconRaster(KeySilkCasesPage):
568 572
569 """ Why: Mutating SVG icons; these paint storm and paint slowly. """ 573 """ Why: Mutating SVG icons; these paint storm and paint slowly. """
570 574
571 def __init__(self, page_set, run_no_page_interactions): 575 def __init__(self, page_set, run_no_page_interactions):
572 super(SVGIconRaster, self).__init__( 576 super(SVGIconRaster, self).__init__(
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 self.AddStory(SilkFinance(self, run_no_page_interactions)) 752 self.AddStory(SilkFinance(self, run_no_page_interactions))
749 # Flaky interaction steps on Android; crbug.com/507865 753 # Flaky interaction steps on Android; crbug.com/507865
750 # self.AddStory(PolymerTopeka(self, run_no_page_interactions)) 754 # self.AddStory(PolymerTopeka(self, run_no_page_interactions))
751 self.AddStory(Masonry(self, run_no_page_interactions)) 755 self.AddStory(Masonry(self, run_no_page_interactions))
752 756
753 for page in self: 757 for page in self:
754 assert (page.__class__.RunPageInteractions == 758 assert (page.__class__.RunPageInteractions ==
755 KeySilkCasesPage.RunPageInteractions), ( 759 KeySilkCasesPage.RunPageInteractions), (
756 'Pages in this page set must not override KeySilkCasesPage\' ' 760 'Pages in this page set must not override KeySilkCasesPage\' '
757 'RunPageInteractions method.') 761 'RunPageInteractions method.')
OLDNEW
« no previous file with comments | « testing/variations/fieldtrial_testing_config_win.json ('k') | tools/run-perf-test.cfg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698