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 KeySearchMobilePage(page_module.Page): | 8 class KeySearchMobilePage(page_module.Page): |
11 | 9 |
12 def __init__(self, url, page_set): | 10 def __init__(self, url, page_set): |
13 super(KeySearchMobilePage, self).__init__(url=url, page_set=page_set) | 11 super(KeySearchMobilePage, 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 # Why: Definitions | 60 # Why: Definitions |
63 'http://www.google.com/search?q=define+define', | 61 'http://www.google.com/search?q=define+define', |
64 # Why: Local results | 62 # Why: Local results |
65 'https://www.google.com/search?q=burritos+94110', | 63 'https://www.google.com/search?q=burritos+94110', |
66 # Why: Graph | 64 # Why: Graph |
67 'http://www.google.com/search?q=x^3' | 65 'http://www.google.com/search?q=x^3' |
68 ] | 66 ] |
69 | 67 |
70 for url in urls_list: | 68 for url in urls_list: |
71 self.AddPage(KeySearchMobilePage(url, self)) | 69 self.AddPage(KeySearchMobilePage(url, self)) |
OLD | NEW |