OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 | 4 |
5 import collections | 5 import collections |
6 import logging | 6 import logging |
7 import re | 7 import re |
8 import sys | 8 import sys |
9 import urllib | 9 import urllib |
10 | 10 |
11 from telemetry import decorators | 11 from telemetry import decorators |
12 from telemetry import story as story_module | 12 from telemetry import story as story_module |
13 # TODO(perezju): Remove references to telementry.internal when | 13 # TODO(perezju): Remove references to telementry.internal when |
14 # https://github.com/catapult-project/catapult/issues/2102 is resolved. | 14 # https://github.com/catapult-project/catapult/issues/2102 is resolved. |
15 from telemetry.internal.browser import browser_finder | 15 from telemetry.internal.browser import browser_finder |
16 from telemetry.internal.browser import browser_finder_exceptions | 16 from telemetry.internal.browser import browser_finder_exceptions |
17 from telemetry.util import wpr_modes | 17 from telemetry.util import wpr_modes |
18 | 18 |
19 from page_sets.top_10_mobile import URL_LIST | 19 from page_sets.top_10_mobile import URL_LIST |
20 | 20 |
21 | 21 |
22 GOOGLE_SEARCH = 'https://www.google.com/search?' | 22 GOOGLE_SEARCH = 'https://www.google.co.uk/search?' |
23 | 23 |
24 SEARCH_QUERIES = [ | 24 SEARCH_QUERIES = [ |
25 'science', | 25 'science', |
26 'cat pictures', | 26 'cat pictures', |
27 '1600 Amphitheatre Pkwy, Mountain View, CA', | 27 '1600 Amphitheatre Pkwy, Mountain View, CA', |
28 'tom hanks', | 28 'tom hanks', |
29 'weather 94110', | 29 'weather 94110', |
30 'goog', | 30 'goog', |
31 'population of california', | 31 'population of california', |
32 'sfo jfk flights', | 32 'sfo jfk flights', |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 url=GOOGLE_SEARCH + urllib.urlencode({'q': query}), | 258 url=GOOGLE_SEARCH + urllib.urlencode({'q': query}), |
259 browser_type='android-webview', | 259 browser_type='android-webview', |
260 phase='on_webview')) | 260 phase='on_webview')) |
261 | 261 |
262 # Stories that run on the browser selected by command line options. | 262 # Stories that run on the browser selected by command line options. |
263 self.AddStory(SinglePage( | 263 self.AddStory(SinglePage( |
264 name=re.sub('\W+', '_', url), | 264 name=re.sub('\W+', '_', url), |
265 url=url, | 265 url=url, |
266 browser_type='default', | 266 browser_type='default', |
267 phase='on_chrome')) | 267 phase='on_chrome')) |
OLD | NEW |