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 _IssueMarkerAndScroll(action_runner): | 10 def _IssueMarkerAndScroll(action_runner): |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 interaction.End() | 111 interaction.End() |
112 | 112 |
113 | 113 |
114 class KeyMobileSitesSmoothPageSet(page_set_module.PageSet): | 114 class KeyMobileSitesSmoothPageSet(page_set_module.PageSet): |
115 | 115 |
116 """ Key mobile sites with smooth interactions. """ | 116 """ Key mobile sites with smooth interactions. """ |
117 | 117 |
118 def __init__(self): | 118 def __init__(self): |
119 super(KeyMobileSitesSmoothPageSet, self).__init__( | 119 super(KeyMobileSitesSmoothPageSet, self).__init__( |
120 user_agent_type='mobile', | 120 user_agent_type='mobile', |
121 archive_data_file='data/key_mobile_sites.json', | 121 archive_data_file='data/key_mobile_sites_smooth.json', |
122 bucket=page_set_module.PARTNER_BUCKET) | 122 bucket=page_set_module.PARTNER_BUCKET) |
123 | 123 |
124 | 124 |
125 # Add pages with predefined classes that contain custom navigation logic. | 125 # Add pages with predefined classes that contain custom navigation logic. |
126 predefined_page_classes = [ | 126 predefined_page_classes = [ |
127 key_mobile_sites_pages.CapitolVolkswagenPage, | 127 key_mobile_sites_pages.CapitolVolkswagenPage, |
128 key_mobile_sites_pages.TheVergeArticlePage, | 128 key_mobile_sites_pages.TheVergeArticlePage, |
129 key_mobile_sites_pages.CnnArticlePage, | 129 key_mobile_sites_pages.CnnArticlePage, |
130 key_mobile_sites_pages.FacebookPage, | 130 key_mobile_sites_pages.FacebookPage, |
131 key_mobile_sites_pages.YoutubeMobilePage, | 131 key_mobile_sites_pages.YoutubeMobilePage, |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 ('http://www.baidu.com/s?wd=barack+obama&rsv_bp=0&rsv_spt=3&rsv_sug3=9&' | 263 ('http://www.baidu.com/s?wd=barack+obama&rsv_bp=0&rsv_spt=3&rsv_sug3=9&' |
264 'rsv_sug=0&rsv_sug4=3824&rsv_sug1=3&inputT=4920'), | 264 'rsv_sug=0&rsv_sug4=3824&rsv_sug1=3&inputT=4920'), |
265 # Why: Top search engine | 265 # Why: Top search engine |
266 'http://www.bing.com/search?q=sloths', | 266 'http://www.bing.com/search?q=sloths', |
267 # Why: Good example of poor initial scrolling | 267 # Why: Good example of poor initial scrolling |
268 'http://ftw.usatoday.com/2014/05/spelling-bee-rules-shenanigans' | 268 'http://ftw.usatoday.com/2014/05/spelling-bee-rules-shenanigans' |
269 ] | 269 ] |
270 | 270 |
271 for url in urls_list: | 271 for url in urls_list: |
272 self.AddUserStory(KeyMobileSitesSmoothPage(url, self)) | 272 self.AddUserStory(KeyMobileSitesSmoothPage(url, self)) |
OLD | NEW |