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): |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 # pylint: disable=C0301 | 96 # pylint: disable=C0301 |
97 'file://tough_animation_cases/css_transitions_staggered_triggering_by_inse
rting_style.html?N=0316', | 97 'file://tough_animation_cases/css_transitions_staggered_triggering_by_inse
rting_style.html?N=0316', |
98 # Why: Tests many CSS Transitions starting at different times triggered by | 98 # Why: Tests many CSS Transitions starting at different times triggered by |
99 # updating class. | 99 # updating class. |
100 # pylint: disable=C0301 | 100 # pylint: disable=C0301 |
101 'file://tough_animation_cases/css_transitions_staggered_triggering_by_upda
ting_class.html?N=0316', | 101 'file://tough_animation_cases/css_transitions_staggered_triggering_by_upda
ting_class.html?N=0316', |
102 # Why: Tests many CSS Transitions starting at different times triggered by | 102 # Why: Tests many CSS Transitions starting at different times triggered by |
103 # updating inline style. | 103 # updating inline style. |
104 # pylint: disable=C0301 | 104 # pylint: disable=C0301 |
105 'file://tough_animation_cases/css_transitions_staggered_triggering_by_upda
ting_inline_style.html?N=0316', | 105 'file://tough_animation_cases/css_transitions_staggered_triggering_by_upda
ting_inline_style.html?N=0316', |
| 106 |
| 107 # Why: Tests many Web Animations all starting at the same time with 500 |
| 108 # keyframes each. |
| 109 'file://tough_animation_cases/web_animations_many_keyframes.html?N=0316', |
| 110 # Why: Tests many paused Web Animations having their currentTimes updated |
| 111 # in every requestAnimationFrame. |
| 112 # pylint: disable=C0301 |
| 113 'file://tough_animation_cases/web_animations_set_current_time_in_raf.html?
N=0316', |
| 114 # Why: Tests many Web Animations all starting at the same time. |
| 115 'file://tough_animation_cases/web_animations_simultaneous.html?N=0316', |
| 116 # Why: Tests many Web Animations all starting at different times then |
| 117 # chained together using events. |
| 118 # pylint: disable=C0301 |
| 119 'file://tough_animation_cases/web_animations_staggered_chaining.html?N=031
6', |
| 120 # Why: Tests many Web Animations all starting at different times with |
| 121 # infinite iterations. |
| 122 # pylint: disable=C0301 |
| 123 'file://tough_animation_cases/web_animations_staggered_infinite_iterations
.html?N=0316', |
| 124 # Why: Tests many Web Animations all starting at different times. |
| 125 # pylint: disable=C0301 |
| 126 'file://tough_animation_cases/web_animations_staggered_triggering.html?N=0
316', |
106 ] | 127 ] |
107 | 128 |
108 for url in urls_list_one: | 129 for url in urls_list_one: |
109 self.AddPage(ToughAnimationCasesPage(url, self, | 130 self.AddPage(ToughAnimationCasesPage(url, self, |
110 need_measurement_ready=True)) | 131 need_measurement_ready=True)) |
111 | 132 |
112 urls_list_two = [ | 133 urls_list_two = [ |
113 # Why: Tests various keyframed animations. | 134 # Why: Tests various keyframed animations. |
114 'file://tough_animation_cases/keyframed_animations.html', | 135 'file://tough_animation_cases/keyframed_animations.html', |
115 # Why: Tests various transitions. | 136 # Why: Tests various transitions. |
116 'file://tough_animation_cases/transform_transitions.html', | 137 'file://tough_animation_cases/transform_transitions.html', |
117 # Why: JS execution blocks CSS transition unless initial transform is set. | 138 # Why: JS execution blocks CSS transition unless initial transform is set. |
118 'file://tough_animation_cases/transform_transition_js_block.html' | 139 'file://tough_animation_cases/transform_transition_js_block.html' |
119 | 140 |
120 # Disabled: crbug.com/350692 | 141 # Disabled: crbug.com/350692 |
121 # Why: Login page is slow because of ineffecient transform operations. | 142 # Why: Login page is slow because of ineffecient transform operations. |
122 # 'http://ie.microsoft.com/testdrive/performance/robohornetpro/', | 143 # 'http://ie.microsoft.com/testdrive/performance/robohornetpro/', |
123 ] | 144 ] |
124 | 145 |
125 for url in urls_list_two: | 146 for url in urls_list_two: |
126 self.AddPage(ToughAnimationCasesPage(url, self, | 147 self.AddPage(ToughAnimationCasesPage(url, self, |
127 need_measurement_ready=False)) | 148 need_measurement_ready=False)) |
OLD | NEW |