| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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) |
| OLD | NEW |