| 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 # pylint: disable=W0401,W0614 | |
| 5 from telemetry.page.actions.all_page_actions import * | |
| 6 from telemetry.page import page as page_module | 4 from telemetry.page import page as page_module |
| 7 from telemetry.page import page_set as page_set_module | 5 from telemetry.page import page_set as page_set_module |
| 8 | 6 |
| 9 | 7 |
| 10 class ToughMemoryMultiTabPage(page_module.Page): | 8 class ToughMemoryMultiTabPage(page_module.Page): |
| 11 | 9 |
| 12 def __init__(self, url, page_set): | 10 def __init__(self, url, page_set): |
| 13 super(ToughMemoryMultiTabPage, self).__init__(url=url, page_set=page_set) | 11 super(ToughMemoryMultiTabPage, self).__init__(url=url, page_set=page_set) |
| 14 self.credentials_path = 'data/credentials.json' | 12 self.credentials_path = 'data/credentials.json' |
| 15 self.user_agent_type = 'mobile' | 13 self.user_agent_type = 'mobile' |
| (...skipping 11 matching lines...) Expand all Loading... |
| 27 archive_data_file='data/key_mobile_sites.json') | 25 archive_data_file='data/key_mobile_sites.json') |
| 28 | 26 |
| 29 urls_list = [ | 27 urls_list = [ |
| 30 'https://www.google.com/#hl=en&q=barack+obama', | 28 'https://www.google.com/#hl=en&q=barack+obama', |
| 31 'http://theverge.com', | 29 'http://theverge.com', |
| 32 'http://techcrunch.com' | 30 'http://techcrunch.com' |
| 33 ] | 31 ] |
| 34 | 32 |
| 35 for url in urls_list: | 33 for url in urls_list: |
| 36 self.AddPage(ToughMemoryMultiTabPage(url, self)) | 34 self.AddPage(ToughMemoryMultiTabPage(url, self)) |
| OLD | NEW |