| OLD | NEW |
| 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 ToughAnimationCasesPage(page_module.Page): | 8 class ToughAnimationCasesPage(page_module.Page): |
| 9 | 9 |
| 10 def __init__(self, url, page_set, need_measurement_ready): | 10 def __init__(self, url, page_set, need_measurement_ready): |
| 11 super(ToughAnimationCasesPage, self).__init__(url=url, page_set=page_set) | 11 super(ToughAnimationCasesPage, self).__init__(url=url, page_set=page_set) |
| 12 self.archive_data_file = 'data/tough_animation_cases.json' | 12 self.archive_data_file = 'data/tough_animation_cases.json' |
| 13 self._need_measurement_ready = need_measurement_ready | 13 self._need_measurement_ready = need_measurement_ready |
| 14 | 14 |
| 15 def RunNavigateSteps(self, action_runner): | 15 def RunNavigateSteps(self, action_runner): |
| 16 action_runner.NavigateToPage(self) | 16 action_runner.NavigateToPage(self) |
| 17 if self._need_measurement_ready: | 17 if self._need_measurement_ready: |
| 18 action_runner.WaitForJavaScriptCondition('window.measurementReady') | 18 action_runner.WaitForJavaScriptCondition('window.measurementReady') |
| 19 | 19 |
| 20 def RunSmoothness(self, action_runner): | 20 def RunPageInteractions(self, action_runner): |
| 21 action_runner.Wait(10) | 21 action_runner.Wait(10) |
| 22 | 22 |
| 23 class ToughAnimationCasesPageSet(page_set_module.PageSet): | 23 class ToughAnimationCasesPageSet(page_set_module.PageSet): |
| 24 | 24 |
| 25 """ | 25 """ |
| 26 Description: A collection of animation performance tests | 26 Description: A collection of animation performance tests |
| 27 """ | 27 """ |
| 28 | 28 |
| 29 def __init__(self): | 29 def __init__(self): |
| 30 super(ToughAnimationCasesPageSet, self).__init__( | 30 super(ToughAnimationCasesPageSet, self).__init__( |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 'file://tough_animation_cases/transform_transition_js_block.html' | 196 'file://tough_animation_cases/transform_transition_js_block.html' |
| 197 | 197 |
| 198 # Disabled: crbug.com/350692 | 198 # Disabled: crbug.com/350692 |
| 199 # Why: Login page is slow because of ineffecient transform operations. | 199 # Why: Login page is slow because of ineffecient transform operations. |
| 200 # 'http://ie.microsoft.com/testdrive/performance/robohornetpro/', | 200 # 'http://ie.microsoft.com/testdrive/performance/robohornetpro/', |
| 201 ] | 201 ] |
| 202 | 202 |
| 203 for url in urls_list_two: | 203 for url in urls_list_two: |
| 204 self.AddUserStory(ToughAnimationCasesPage(url, self, | 204 self.AddUserStory(ToughAnimationCasesPage(url, self, |
| 205 need_measurement_ready=False)) | 205 need_measurement_ready=False)) |
| OLD | NEW |