| 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 name=url.split('/')[-1]) |
| 12 self.archive_data_file = 'data/tough_animation_cases.json' | 13 self.archive_data_file = 'data/tough_animation_cases.json' |
| 13 self._need_measurement_ready = need_measurement_ready | 14 self._need_measurement_ready = need_measurement_ready |
| 14 | 15 |
| 15 def RunNavigateSteps(self, action_runner): | 16 def RunNavigateSteps(self, action_runner): |
| 16 super(ToughAnimationCasesPage, self).RunNavigateSteps(action_runner) | 17 super(ToughAnimationCasesPage, self).RunNavigateSteps(action_runner) |
| 17 if self._need_measurement_ready: | 18 if self._need_measurement_ready: |
| 18 action_runner.WaitForJavaScriptCondition('window.measurementReady') | 19 action_runner.WaitForJavaScriptCondition('window.measurementReady') |
| 19 | 20 |
| 20 def RunPageInteractions(self, action_runner): | 21 def RunPageInteractions(self, action_runner): |
| 21 with action_runner.CreateInteraction('ToughAnimation'): | 22 with action_runner.CreateInteraction('ToughAnimation'): |
| 22 action_runner.Wait(10) | 23 action_runner.Wait(10) |
| 23 | 24 |
| 24 class ToughAnimationCasesPageSet(story.StorySet): | 25 class ToughAnimationCasesPageSet(story.StorySet): |
| 25 | 26 |
| 26 """ | 27 """ |
| 27 Description: A collection of animation performance tests | 28 Description: A collection of animation performance tests |
| 28 """ | 29 """ |
| 29 | 30 |
| 30 def __init__(self): | 31 def __init__(self): |
| 31 super(ToughAnimationCasesPageSet, self).__init__( | 32 super(ToughAnimationCasesPageSet, self).__init__( |
| 32 archive_data_file='data/tough_animation_cases.json', | 33 archive_data_file='data/tough_animation_cases.json', |
| 33 cloud_storage_bucket=story.PARTNER_BUCKET) | 34 cloud_storage_bucket=story.PARTNER_BUCKET, |
| 35 verify_names=True) |
| 34 | 36 |
| 35 urls_list_one = [ | 37 urls_list_one = [ |
| 36 # Why: Tests the balls animation implemented with SVG animations. | 38 # Why: Tests the balls animation implemented with SVG animations. |
| 37 'file://tough_animation_cases/balls_svg_animations.html', | 39 'file://tough_animation_cases/balls_svg_animations.html', |
| 38 # Why: Tests the balls animation implemented with Javascript and canvas. | 40 # Why: Tests the balls animation implemented with Javascript and canvas. |
| 39 'file://tough_animation_cases/balls_javascript_canvas.html', | 41 'file://tough_animation_cases/balls_javascript_canvas.html', |
| 40 # Why: Tests the balls animation implemented with Javascript and CSS. | 42 # Why: Tests the balls animation implemented with Javascript and CSS. |
| 41 'file://tough_animation_cases/balls_javascript_css.html', | 43 'file://tough_animation_cases/balls_javascript_css.html', |
| 42 # Why: Tests the balls animation implemented with CSS keyframe animations. | 44 # Why: Tests the balls animation implemented with CSS keyframe animations. |
| 43 'file://tough_animation_cases/balls_css_keyframe_animations.html', | 45 'file://tough_animation_cases/balls_css_keyframe_animations.html', |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 'file://tough_animation_cases/mix_blend_mode_propagating_isolation.html', | 267 'file://tough_animation_cases/mix_blend_mode_propagating_isolation.html', |
| 266 | 268 |
| 267 # Disabled: crbug.com/350692 | 269 # Disabled: crbug.com/350692 |
| 268 # Why: Login page is slow because of ineffecient transform operations. | 270 # Why: Login page is slow because of ineffecient transform operations. |
| 269 # 'http://ie.microsoft.com/testdrive/performance/robohornetpro/', | 271 # 'http://ie.microsoft.com/testdrive/performance/robohornetpro/', |
| 270 ] | 272 ] |
| 271 | 273 |
| 272 for url in urls_list_two: | 274 for url in urls_list_two: |
| 273 self.AddStory(ToughAnimationCasesPage(url, self, | 275 self.AddStory(ToughAnimationCasesPage(url, self, |
| 274 need_measurement_ready=False)) | 276 need_measurement_ready=False)) |
| OLD | NEW |