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 key_mobile_sites_pages | 7 from page_sets import key_mobile_sites_pages |
8 | 8 |
9 | 9 |
10 def _RepaintContinously(action_runner): | 10 def _RepaintContinously(action_runner): |
11 action_runner.RepaintContinuously(seconds=5) | 11 with action_runner.CreateInteraction('Repaint'): |
| 12 action_runner.RepaintContinuously(seconds=5) |
12 | 13 |
13 | 14 |
14 def _CreatePageClassWithRepaintInteractions(page_cls): | 15 def _CreatePageClassWithRepaintInteractions(page_cls): |
15 class DerivedRepaintPage(page_cls): # pylint: disable=W0232 | 16 class DerivedRepaintPage(page_cls): # pylint: disable=W0232 |
16 | 17 |
17 def RunPageInteractions(self, action_runner): | 18 def RunPageInteractions(self, action_runner): |
18 _RepaintContinously(action_runner) | 19 _RepaintContinously(action_runner) |
19 return DerivedRepaintPage | 20 return DerivedRepaintPage |
20 | 21 |
21 | 22 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 ('http://www.baidu.com/s?wd=barack+obama&rsv_bp=0&rsv_spt=3&rsv_sug3=9&' | 177 ('http://www.baidu.com/s?wd=barack+obama&rsv_bp=0&rsv_spt=3&rsv_sug3=9&' |
177 'rsv_sug=0&rsv_sug4=3824&rsv_sug1=3&inputT=4920'), | 178 'rsv_sug=0&rsv_sug4=3824&rsv_sug1=3&inputT=4920'), |
178 # Why: Top search engine | 179 # Why: Top search engine |
179 'http://www.bing.com/search?q=sloths', | 180 'http://www.bing.com/search?q=sloths', |
180 # Why: Good example of poor initial scrolling | 181 # Why: Good example of poor initial scrolling |
181 'http://ftw.usatoday.com/2014/05/spelling-bee-rules-shenanigans' | 182 'http://ftw.usatoday.com/2014/05/spelling-bee-rules-shenanigans' |
182 ] | 183 ] |
183 | 184 |
184 for url in urls_list: | 185 for url in urls_list: |
185 self.AddUserStory(KeyMobileSitesRepaintPage(url, self)) | 186 self.AddUserStory(KeyMobileSitesRepaintPage(url, self)) |
OLD | NEW |