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 shared_page_state | 5 from telemetry.page import shared_page_state |
5 from telemetry.page import page as page_module | |
6 | 6 |
7 | 7 |
8 class KeyMobileSitesPage(page_module.Page): | 8 class KeyMobileSitesPage(page_module.Page): |
9 | 9 |
10 def __init__(self, url, page_set, name='', labels=None): | 10 def __init__(self, url, page_set, name='', labels=None): |
11 super(KeyMobileSitesPage, self).__init__( | 11 super(KeyMobileSitesPage, self).__init__( |
12 url=url, page_set=page_set, name=name, | 12 url=url, page_set=page_set, name=name, |
13 shared_page_state_class=shared_page_state.SharedMobilePageState, | 13 shared_page_state_class=shared_page_state.SharedMobilePageState, |
14 credentials_path='data/credentials.json', labels=labels) | 14 credentials_path='data/credentials.json', labels=labels) |
15 self.archive_data_file = 'data/key_mobile_sites.json' | 15 self.archive_data_file = 'data/key_mobile_sites.json' |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 class AmazonNicolasCagePage(KeyMobileSitesPage): | 226 class AmazonNicolasCagePage(KeyMobileSitesPage): |
227 | 227 |
228 """ | 228 """ |
229 Why: #1 world commerce website by visits; #3 commerce in the US by time spent | 229 Why: #1 world commerce website by visits; #3 commerce in the US by time spent |
230 """ | 230 """ |
231 | 231 |
232 def __init__(self, page_set): | 232 def __init__(self, page_set): |
233 super(AmazonNicolasCagePage, self).__init__( | 233 super(AmazonNicolasCagePage, self).__init__( |
234 url='http://www.amazon.com/gp/aw/s/ref=is_box_?k=nicolas+cage', | 234 url='http://www.amazon.com/gp/aw/s/ref=is_box_?k=nicolas+cage', |
235 page_set=page_set) | 235 page_set=page_set) |
OLD | NEW |