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

Side by Side Diff: tools/perf/page_sets/system_health/system_health_story.py

Issue 2819193002: Support flag --also-run-disabled-tests for system health tests (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | 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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 4
5 from page_sets.system_health import platforms 5 from page_sets.system_health import platforms
6 from page_sets.system_health import story_tags 6 from page_sets.system_health import story_tags
7 7
8 from telemetry import decorators 8 from telemetry import decorators
9 from telemetry.page import page 9 from telemetry.page import page
10 from telemetry.page import shared_page_state 10 from telemetry.page import shared_page_state
(...skipping 21 matching lines...) Expand all
32 32
33 class Story(system_health_story.SystemHealthStory): 33 class Story(system_health_story.SystemHealthStory):
34 ... 34 ...
35 35
36 @classmethod 36 @classmethod
37 def ShouldDisable(cls, possible_browser): 37 def ShouldDisable(cls, possible_browser):
38 return possible_browser.platform.GetOSName() == 'win' 38 return possible_browser.platform.GetOSName() == 'win'
39 """ 39 """
40 40
41 def CanRunStory(self, story): 41 def CanRunStory(self, story):
42 if self._finder_options.run_disabled_tests:
43 return True
42 return story.CanRun(self.possible_browser) 44 return story.CanRun(self.possible_browser)
43 45
44 46
45 class _MetaSystemHealthStory(type): 47 class _MetaSystemHealthStory(type):
46 """Metaclass for SystemHealthStory.""" 48 """Metaclass for SystemHealthStory."""
47 49
48 @property 50 @property
49 def ABSTRACT_STORY(cls): 51 def ABSTRACT_STORY(cls):
50 """Class field marking whether the class is abstract. 52 """Class field marking whether the class is abstract.
51 53
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 pass 115 pass
114 116
115 def RunNavigateSteps(self, action_runner): 117 def RunNavigateSteps(self, action_runner):
116 self._Login(action_runner) 118 self._Login(action_runner)
117 super(SystemHealthStory, self).RunNavigateSteps(action_runner) 119 super(SystemHealthStory, self).RunNavigateSteps(action_runner)
118 120
119 def RunPageInteractions(self, action_runner): 121 def RunPageInteractions(self, action_runner):
120 action_runner.tab.WaitForDocumentReadyStateToBeComplete() 122 action_runner.tab.WaitForDocumentReadyStateToBeComplete()
121 self._DidLoadDocument(action_runner) 123 self._DidLoadDocument(action_runner)
122 self._Measure(action_runner) 124 self._Measure(action_runner)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698