| 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 |
| 11 | 11 |
| 12 | 12 |
| 13 # Extra wait time after the page has loaded required by the loading metric. We | 13 # Extra wait time after the page has loaded required by the loading metric. We |
| 14 # use it in all benchmarks to avoid divergence between benchmarks. | 14 # use it in all benchmarks to avoid divergence between benchmarks. |
| 15 # TODO(petrcermak): Switch the memory benchmarks to use it as well. | 15 # TODO(petrcermak): Switch the memory benchmarks to use it as well. |
| 16 _WAIT_TIME_AFTER_LOAD = 10 | 16 _WAIT_TIME_AFTER_LOAD = 15 |
| 17 | 17 |
| 18 | 18 |
| 19 class _SystemHealthSharedState(shared_page_state.SharedPageState): | 19 class _SystemHealthSharedState(shared_page_state.SharedPageState): |
| 20 """Shared state which enables disabling stories on individual platforms. | 20 """Shared state which enables disabling stories on individual platforms. |
| 21 | 21 |
| 22 This class adds support for enabling/disabling individual stories on | 22 This class adds support for enabling/disabling individual stories on |
| 23 individual platforms using the same approaches as for benchmarks: | 23 individual platforms using the same approaches as for benchmarks: |
| 24 | 24 |
| 25 ************** | 25 ************** |
| 26 *** DEPRECATED: Please use story expectations in ./exepctions.py to disable. | 26 *** DEPRECATED: Please use story expectations in ./exepctions.py to disable. |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 pass | 134 pass |
| 135 | 135 |
| 136 def RunNavigateSteps(self, action_runner): | 136 def RunNavigateSteps(self, action_runner): |
| 137 self._Login(action_runner) | 137 self._Login(action_runner) |
| 138 super(SystemHealthStory, self).RunNavigateSteps(action_runner) | 138 super(SystemHealthStory, self).RunNavigateSteps(action_runner) |
| 139 | 139 |
| 140 def RunPageInteractions(self, action_runner): | 140 def RunPageInteractions(self, action_runner): |
| 141 action_runner.tab.WaitForDocumentReadyStateToBeComplete() | 141 action_runner.tab.WaitForDocumentReadyStateToBeComplete() |
| 142 self._DidLoadDocument(action_runner) | 142 self._DidLoadDocument(action_runner) |
| 143 self._Measure(action_runner) | 143 self._Measure(action_runner) |
| OLD | NEW |