| 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 url='http://cuteoverload.com', page_set=self, labels=['fastpath'])) | 176 url='http://cuteoverload.com', page_set=self, labels=['fastpath'])) |
| 177 | 177 |
| 178 # Why: #11 (Alexa global), google property; some blogger layouts | 178 # Why: #11 (Alexa global), google property; some blogger layouts |
| 179 # have infinite scroll but more interesting. | 179 # have infinite scroll but more interesting. |
| 180 self.AddStory(KeyMobileSitesSmoothPage( | 180 self.AddStory(KeyMobileSitesSmoothPage( |
| 181 url='http://googlewebmastercentral.blogspot.com/', | 181 url='http://googlewebmastercentral.blogspot.com/', |
| 182 page_set=self, name='Blogger')) | 182 page_set=self, name='Blogger')) |
| 183 | 183 |
| 184 # Why: #18 (Alexa global), Picked an interesting post """ | 184 # Why: #18 (Alexa global), Picked an interesting post """ |
| 185 self.AddStory(KeyMobileSitesSmoothPage( | 185 self.AddStory(KeyMobileSitesSmoothPage( |
| 186 # pylint: disable=line-too-long | |
| 187 url='http://en.blog.wordpress.com/2012/09/04/freshly-pressed-editors-picks
-for-august-2012/', | 186 url='http://en.blog.wordpress.com/2012/09/04/freshly-pressed-editors-picks
-for-august-2012/', |
| 188 page_set=self, | 187 page_set=self, |
| 189 name='Wordpress')) | 188 name='Wordpress')) |
| 190 | 189 |
| 191 # Why: #6 (Alexa) most visited worldwide, picked an interesting page | 190 # Why: #6 (Alexa) most visited worldwide, picked an interesting page |
| 192 self.AddStory(KeyMobileSitesSmoothPage( | 191 self.AddStory(KeyMobileSitesSmoothPage( |
| 193 url='http://en.wikipedia.org/wiki/Wikipedia', | 192 url='http://en.wikipedia.org/wiki/Wikipedia', |
| 194 page_set=self, | 193 page_set=self, |
| 195 name='Wikipedia (1 tab)')) | 194 name='Wikipedia (1 tab)')) |
| 196 | 195 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 url='http://www.reddit.com/r/programming/comments/1g96ve', | 229 url='http://www.reddit.com/r/programming/comments/1g96ve', |
| 231 page_set=self, labels=['fastpath'])) | 230 page_set=self, labels=['fastpath'])) |
| 232 | 231 |
| 233 # Why: Problematic use of fixed position elements """ | 232 # Why: Problematic use of fixed position elements """ |
| 234 self.AddStory(KeyMobileSitesSmoothPage( | 233 self.AddStory(KeyMobileSitesSmoothPage( |
| 235 url='http://www.boingboing.net', page_set=self, labels=['fastpath'])) | 234 url='http://www.boingboing.net', page_set=self, labels=['fastpath'])) |
| 236 | 235 |
| 237 # Add simple pages with no custom navigation logic or labels. | 236 # Add simple pages with no custom navigation logic or labels. |
| 238 urls_list = [ | 237 urls_list = [ |
| 239 # Why: Social; top Google property; Public profile; infinite scrolls. | 238 # Why: Social; top Google property; Public profile; infinite scrolls. |
| 240 # pylint: disable=line-too-long | |
| 241 'https://plus.google.com/app/basic/110031535020051778989/posts?source=appp
romo', | 239 'https://plus.google.com/app/basic/110031535020051778989/posts?source=appp
romo', |
| 242 # Why: crbug.com/242544 | 240 # Why: crbug.com/242544 |
| 243 ('http://www.androidpolice.com/2012/10/03/rumor-evidence-mounts-that-an-' | 241 ('http://www.androidpolice.com/2012/10/03/rumor-evidence-mounts-that-an-' |
| 244 'lg-optimus-g-nexus-is-coming-along-with-a-nexus-phone-certification-' | 242 'lg-optimus-g-nexus-is-coming-along-with-a-nexus-phone-certification-' |
| 245 'program/'), | 243 'program/'), |
| 246 # Why: crbug.com/149958 | 244 # Why: crbug.com/149958 |
| 247 'http://gsp.ro', | 245 'http://gsp.ro', |
| 248 # Why: Top tech blog | 246 # Why: Top tech blog |
| 249 'http://theverge.com', | 247 'http://theverge.com', |
| 250 # Why: Top tech site | 248 # Why: Top tech site |
| 251 'http://digg.com', | 249 'http://digg.com', |
| 252 # Why: Top Google property; a Google tab is often open | 250 # Why: Top Google property; a Google tab is often open |
| 253 'https://www.google.com/#hl=en&q=barack+obama', | 251 'https://www.google.com/#hl=en&q=barack+obama', |
| 254 # Why: #1 news worldwide (Alexa global) | 252 # Why: #1 news worldwide (Alexa global) |
| 255 'http://news.yahoo.com', | 253 'http://news.yahoo.com', |
| 256 # Why: #2 news worldwide | 254 # Why: #2 news worldwide |
| 257 'http://www.cnn.com', | 255 'http://www.cnn.com', |
| 258 # Why: #1 commerce website by time spent by users in US | 256 # Why: #1 commerce website by time spent by users in US |
| 259 'http://shop.mobileweb.ebay.com/searchresults?kw=viking+helmet', | 257 'http://shop.mobileweb.ebay.com/searchresults?kw=viking+helmet', |
| 260 # Why: #1 Alexa recreation | 258 # Why: #1 Alexa recreation |
| 261 # pylint: disable=line-too-long | |
| 262 'http://www.booking.com/searchresults.html?src=searchresults&latitude=65.0
500&longitude=25.4667', | 259 'http://www.booking.com/searchresults.html?src=searchresults&latitude=65.0
500&longitude=25.4667', |
| 263 # Why: Top tech blog | 260 # Why: Top tech blog |
| 264 'http://techcrunch.com', | 261 'http://techcrunch.com', |
| 265 # Why: #6 Alexa sports | 262 # Why: #6 Alexa sports |
| 266 'http://mlb.com/', | 263 'http://mlb.com/', |
| 267 # Why: #14 Alexa California | 264 # Why: #14 Alexa California |
| 268 'http://www.sfgate.com/', | 265 'http://www.sfgate.com/', |
| 269 # Why: Non-latin character set | 266 # Why: Non-latin character set |
| 270 'http://worldjournal.com/', | 267 'http://worldjournal.com/', |
| 271 # Why: #15 Alexa news | 268 # Why: #15 Alexa news |
| 272 'http://online.wsj.com/home-page', | 269 'http://online.wsj.com/home-page', |
| 273 # Why: Image-heavy mobile site | 270 # Why: Image-heavy mobile site |
| 274 'http://www.deviantart.com/', | 271 'http://www.deviantart.com/', |
| 275 # Why: Top search engine | 272 # Why: Top search engine |
| 276 ('http://www.baidu.com/s?wd=barack+obama&rsv_bp=0&rsv_spt=3&rsv_sug3=9&' | 273 ('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'), | 274 'rsv_sug=0&rsv_sug4=3824&rsv_sug1=3&inputT=4920'), |
| 278 # Why: Top search engine | 275 # Why: Top search engine |
| 279 'http://www.bing.com/search?q=sloths', | 276 'http://www.bing.com/search?q=sloths', |
| 280 # Why: Good example of poor initial scrolling | 277 # Why: Good example of poor initial scrolling |
| 281 'http://ftw.usatoday.com/2014/05/spelling-bee-rules-shenanigans' | 278 'http://ftw.usatoday.com/2014/05/spelling-bee-rules-shenanigans' |
| 282 ] | 279 ] |
| 283 | 280 |
| 284 for url in urls_list: | 281 for url in urls_list: |
| 285 self.AddStory(KeyMobileSitesSmoothPage(url, self)) | 282 self.AddStory(KeyMobileSitesSmoothPage(url, self)) |
| OLD | NEW |