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 from page_sets import top_pages | 7 from page_sets import top_pages |
8 | 8 |
9 | 9 |
10 def _IssueMarkerAndScroll(action_runner): | 10 def _IssueMarkerAndScroll(action_runner): |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 action_runner.ScrollElement(selector='.kix-appview-editor') | 119 action_runner.ScrollElement(selector='.kix-appview-editor') |
120 interaction.End() | 120 interaction.End() |
121 | 121 |
122 | 122 |
123 class GoogleMapsPage(top_pages.GoogleMapsPage): | 123 class GoogleMapsPage(top_pages.GoogleMapsPage): |
124 | 124 |
125 """ Why: productivity, top google properties; Supports drag gestures """ | 125 """ Why: productivity, top google properties; Supports drag gestures """ |
126 | 126 |
127 def RunPageInteractions(self, action_runner): | 127 def RunPageInteractions(self, action_runner): |
128 interaction = action_runner.BeginGestureInteraction( | 128 interaction = action_runner.BeginGestureInteraction( |
129 'DragAction', is_smooth=True) | 129 'DragAction', is_smooth=True, repeatable=True) |
130 action_runner.DragPage(left_start_ratio=0.5, top_start_ratio=0.75, | 130 action_runner.DragPage(left_start_ratio=0.5, top_start_ratio=0.75, |
131 left_end_ratio=0.75, top_end_ratio=0.5) | 131 left_end_ratio=0.75, top_end_ratio=0.5) |
132 interaction.End() | 132 interaction.End() |
133 action_runner.Wait(2) | 133 action_runner.Wait(2) |
134 interaction = action_runner.BeginGestureInteraction( | 134 interaction = action_runner.BeginGestureInteraction( |
135 'DragAction', is_smooth=True) | 135 'DragAction', is_smooth=True, repeatable=True) |
136 action_runner.DragPage(left_start_ratio=0.5, top_start_ratio=0.5, | 136 action_runner.DragPage(left_start_ratio=0.5, top_start_ratio=0.5, |
137 left_end_ratio=0.35, top_end_ratio=0.75) | 137 left_end_ratio=0.35, top_end_ratio=0.75) |
138 interaction.End() | 138 interaction.End() |
139 # TODO(ssid): Add zoom gestures after fixing bug crbug.com/462214. | 139 # TODO(ssid): Add zoom gestures after fixing bug crbug.com/462214. |
140 | 140 |
141 | 141 |
142 class ESPNSmoothPage(top_pages.ESPNPage): | 142 class ESPNSmoothPage(top_pages.ESPNPage): |
143 | 143 |
144 """ Why: #1 sports """ | 144 """ Why: #1 sports """ |
145 | 145 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 # Why: #1 Alexa reference | 208 # Why: #1 Alexa reference |
209 'http://answers.yahoo.com', | 209 'http://answers.yahoo.com', |
210 # Why: #1 Alexa sports | 210 # Why: #1 Alexa sports |
211 'http://sports.yahoo.com/', | 211 'http://sports.yahoo.com/', |
212 # Why: top tech blog | 212 # Why: top tech blog |
213 'http://techcrunch.com' | 213 'http://techcrunch.com' |
214 ] | 214 ] |
215 | 215 |
216 for url in other_urls: | 216 for url in other_urls: |
217 self.AddUserStory(TopSmoothPage(url, self)) | 217 self.AddUserStory(TopSmoothPage(url, self)) |
OLD | NEW |