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 import story | 5 from telemetry import story |
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 super(ToughAnimationCasesPage, self).RunNavigateSteps(action_runner) | 16 super(ToughAnimationCasesPage, self).RunNavigateSteps(action_runner) |
17 if self._need_measurement_ready: | 17 if self._need_measurement_ready: |
18 action_runner.WaitForJavaScriptCondition2('window.measurementReady') | 18 action_runner.WaitForJavaScriptCondition('window.measurementReady') |
19 | 19 |
20 def RunPageInteractions(self, action_runner): | 20 def RunPageInteractions(self, action_runner): |
21 with action_runner.CreateInteraction('ToughAnimation'): | 21 with action_runner.CreateInteraction('ToughAnimation'): |
22 action_runner.Wait(10) | 22 action_runner.Wait(10) |
23 | 23 |
24 class ToughAnimationCasesPageSet(story.StorySet): | 24 class ToughAnimationCasesPageSet(story.StorySet): |
25 | 25 |
26 """ | 26 """ |
27 Description: A collection of animation performance tests | 27 Description: A collection of animation performance tests |
28 """ | 28 """ |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 'file://tough_animation_cases/mix_blend_mode_propagating_isolation.html', | 265 'file://tough_animation_cases/mix_blend_mode_propagating_isolation.html', |
266 | 266 |
267 # Disabled: crbug.com/350692 | 267 # Disabled: crbug.com/350692 |
268 # Why: Login page is slow because of ineffecient transform operations. | 268 # Why: Login page is slow because of ineffecient transform operations. |
269 # 'http://ie.microsoft.com/testdrive/performance/robohornetpro/', | 269 # 'http://ie.microsoft.com/testdrive/performance/robohornetpro/', |
270 ] | 270 ] |
271 | 271 |
272 for url in urls_list_two: | 272 for url in urls_list_two: |
273 self.AddStory(ToughAnimationCasesPage(url, self, | 273 self.AddStory(ToughAnimationCasesPage(url, self, |
274 need_measurement_ready=False)) | 274 need_measurement_ready=False)) |
OLD | NEW |