| 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 | 9 |
| 10 | 10 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 # will not be in the root scroller. | 125 # will not be in the root scroller. |
| 126 action_runner.ScrollPage(top_start_ratio=0.01) | 126 action_runner.ScrollPage(top_start_ratio=0.01) |
| 127 | 127 |
| 128 class KeyMobileSitesSmoothPageSet(story.StorySet): | 128 class KeyMobileSitesSmoothPageSet(story.StorySet): |
| 129 | 129 |
| 130 """ Key mobile sites with smooth interactions. """ | 130 """ Key mobile sites with smooth interactions. """ |
| 131 | 131 |
| 132 def __init__(self): | 132 def __init__(self): |
| 133 super(KeyMobileSitesSmoothPageSet, self).__init__( | 133 super(KeyMobileSitesSmoothPageSet, self).__init__( |
| 134 archive_data_file='data/key_mobile_sites_smooth.json', | 134 archive_data_file='data/key_mobile_sites_smooth.json', |
| 135 cloud_storage_bucket=story.PARTNER_BUCKET, | 135 cloud_storage_bucket=story.PARTNER_BUCKET) |
| 136 verify_names=True) | |
| 137 | 136 |
| 138 | 137 |
| 139 # Add pages with predefined classes that contain custom navigation logic. | 138 # Add pages with predefined classes that contain custom navigation logic. |
| 140 predefined_page_classes = [ | 139 predefined_page_classes = [ |
| 141 key_mobile_sites_pages.CapitolVolkswagenPage, | 140 key_mobile_sites_pages.CapitolVolkswagenPage, |
| 142 key_mobile_sites_pages.TheVergeArticlePage, | 141 key_mobile_sites_pages.TheVergeArticlePage, |
| 143 key_mobile_sites_pages.FacebookPage, | 142 key_mobile_sites_pages.FacebookPage, |
| 144 key_mobile_sites_pages.YoutubeMobilePage, | 143 key_mobile_sites_pages.YoutubeMobilePage, |
| 145 key_mobile_sites_pages.YahooAnswersPage, | 144 key_mobile_sites_pages.YahooAnswersPage, |
| 146 key_mobile_sites_pages.GoogleNewsMobilePage, | 145 key_mobile_sites_pages.GoogleNewsMobilePage, |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 ('http://www.baidu.com/s?wd=barack+obama&rsv_bp=0&rsv_spt=3&rsv_sug3=9&' | 275 ('http://www.baidu.com/s?wd=barack+obama&rsv_bp=0&rsv_spt=3&rsv_sug3=9&' |
| 277 'rsv_sug=0&rsv_sug4=3824&rsv_sug1=3&inputT=4920'), | 276 'rsv_sug=0&rsv_sug4=3824&rsv_sug1=3&inputT=4920'), |
| 278 # Why: Top search engine | 277 # Why: Top search engine |
| 279 'http://www.bing.com/search?q=sloths', | 278 'http://www.bing.com/search?q=sloths', |
| 280 # Why: Good example of poor initial scrolling | 279 # Why: Good example of poor initial scrolling |
| 281 'http://ftw.usatoday.com/2014/05/spelling-bee-rules-shenanigans' | 280 'http://ftw.usatoday.com/2014/05/spelling-bee-rules-shenanigans' |
| 282 ] | 281 ] |
| 283 | 282 |
| 284 for url in urls_list: | 283 for url in urls_list: |
| 285 self.AddStory(KeyMobileSitesSmoothPage(url, self)) | 284 self.AddStory(KeyMobileSitesSmoothPage(url, self)) |
| OLD | NEW |