OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 | 7 |
8 class PathologicalMobileSitesPage(page_module.Page): | 8 class PathologicalMobileSitesPage(page_module.Page): |
9 | 9 |
10 def __init__(self, url, page_set): | 10 def __init__(self, url, page_set): |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 def __init__(self): | 27 def __init__(self): |
28 super(PathologicalMobileSitesPageSet, self).__init__( | 28 super(PathologicalMobileSitesPageSet, self).__init__( |
29 user_agent_type='mobile', | 29 user_agent_type='mobile', |
30 archive_data_file='data/pathological_mobile_sites.json', | 30 archive_data_file='data/pathological_mobile_sites.json', |
31 bucket=page_set_module.PARTNER_BUCKET) | 31 bucket=page_set_module.PARTNER_BUCKET) |
32 | 32 |
33 sites = ['http://edition.cnn.com', | 33 sites = ['http://edition.cnn.com', |
34 'http://m.espn.go.com/nhl/rankings', | 34 'http://m.espn.go.com/nhl/rankings', |
35 'http://recode.net', | 35 'http://recode.net', |
| 36 'http://sports.yahoo.com/', |
36 'http://www.latimes.com', | 37 'http://www.latimes.com', |
37 ('http://www.pbs.org/newshour/bb/' | 38 ('http://www.pbs.org/newshour/bb/' |
38 'much-really-cost-live-city-like-seattle/#the-rundown'), | 39 'much-really-cost-live-city-like-seattle/#the-rundown'), |
39 ('http://www.theguardian.com/politics/2015/mar/09/' | 40 ('http://www.theguardian.com/politics/2015/mar/09/' |
40 'ed-balls-tory-spending-plans-nhs-charging'), | 41 'ed-balls-tory-spending-plans-nhs-charging'), |
41 'http://www.zdnet.com', | 42 'http://www.zdnet.com', |
42 'http://www.wowwiki.com/World_of_Warcraft:_Mists_of_Pandaria', | 43 'http://www.wowwiki.com/World_of_Warcraft:_Mists_of_Pandaria', |
43 'https://www.linkedin.com/in/linustorvalds'] | 44 'https://www.linkedin.com/in/linustorvalds'] |
44 | 45 |
45 for site in sites: | 46 for site in sites: |
46 self.AddUserStory(PathologicalMobileSitesPage(site, self)) | 47 self.AddUserStory(PathologicalMobileSitesPage(site, self)) |
OLD | NEW |