| 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 shared_page_state | 5 from telemetry.page import shared_page_state |
| 6 from telemetry import story | 6 from telemetry import story |
| 7 | 7 |
| 8 from page_sets import key_mobile_sites_pages | 8 from page_sets import key_mobile_sites_pages |
| 9 from page_sets import repaint_helpers | 9 from page_sets import repaint_helpers |
| 10 | 10 |
| 11 | 11 |
| 12 | 12 |
| 13 def _CreatePageClassWithRepaintInteractions(page_cls, mode, height, width): | 13 def _CreatePageClassWithRepaintInteractions(page_cls, mode, height, width): |
| 14 class DerivedRepaintPage(page_cls): # pylint: disable=W0232 | 14 class DerivedRepaintPage(page_cls): # pylint: disable=no-init |
| 15 | 15 |
| 16 def RunPageInteractions(self, action_runner): | 16 def RunPageInteractions(self, action_runner): |
| 17 repaint_helpers.Repaint( | 17 repaint_helpers.Repaint( |
| 18 action_runner, mode=mode, width=width, height=height) | 18 action_runner, mode=mode, width=width, height=height) |
| 19 | 19 |
| 20 return DerivedRepaintPage | 20 return DerivedRepaintPage |
| 21 | 21 |
| 22 | 22 |
| 23 class KeyMobileSitesRepaintPage(page_module.Page): | 23 class KeyMobileSitesRepaintPage(page_module.Page): |
| 24 | 24 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 'rsv_sug=0&rsv_sug4=3824&rsv_sug1=3&inputT=4920'), | 183 'rsv_sug=0&rsv_sug4=3824&rsv_sug1=3&inputT=4920'), |
| 184 # Why: Top search engine | 184 # Why: Top search engine |
| 185 'http://www.bing.com/search?q=sloths', | 185 'http://www.bing.com/search?q=sloths', |
| 186 # Why: Good example of poor initial scrolling | 186 # Why: Good example of poor initial scrolling |
| 187 'http://ftw.usatoday.com/2014/05/spelling-bee-rules-shenanigans' | 187 'http://ftw.usatoday.com/2014/05/spelling-bee-rules-shenanigans' |
| 188 ] | 188 ] |
| 189 | 189 |
| 190 for url in urls_list: | 190 for url in urls_list: |
| 191 self.AddStory(KeyMobileSitesRepaintPage( | 191 self.AddStory(KeyMobileSitesRepaintPage( |
| 192 url, self, mode=mode, height=height, width=width)) | 192 url, self, mode=mode, height=height, width=width)) |
| OLD | NEW |