| 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 page as page_module |
| 5 from telemetry.page import shared_page_state | 5 from telemetry.page import shared_page_state |
| 6 from telemetry import story | 6 from telemetry import story |
| 7 | 7 |
| 8 | 8 |
| 9 class KeySearchMobilePage(page_module.Page): | 9 class KeySearchMobilePage(page_module.Page): |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 cloud_storage_bucket=story.PUBLIC_BUCKET) | 29 cloud_storage_bucket=story.PUBLIC_BUCKET) |
| 30 | 30 |
| 31 urls_list = [ | 31 urls_list = [ |
| 32 # Why: An empty page should be as snappy as possible | 32 # Why: An empty page should be as snappy as possible |
| 33 'http://www.google.com/', | 33 'http://www.google.com/', |
| 34 # Why: A reasonable search term with no images or ads usually | 34 # Why: A reasonable search term with no images or ads usually |
| 35 'https://www.google.com/search?q=science', | 35 'https://www.google.com/search?q=science', |
| 36 # Why: A reasonable search term with images but no ads usually | 36 # Why: A reasonable search term with images but no ads usually |
| 37 'http://www.google.com/search?q=orange', | 37 'http://www.google.com/search?q=orange', |
| 38 # Why: An address search | 38 # Why: An address search |
| 39 # pylint: disable=C0301 | 39 # pylint: disable=line-too-long |
| 40 'https://www.google.com/search?q=1600+Amphitheatre+Pkwy%2C+Mountain+View%2
C+CA', | 40 'https://www.google.com/search?q=1600+Amphitheatre+Pkwy%2C+Mountain+View%2
C+CA', |
| 41 # Why: A search for a known actor | 41 # Why: A search for a known actor |
| 42 'http://www.google.com/search?q=tom+hanks', | 42 'http://www.google.com/search?q=tom+hanks', |
| 43 # Why: A search for weather | 43 # Why: A search for weather |
| 44 'https://www.google.com/search?q=weather+94110', | 44 'https://www.google.com/search?q=weather+94110', |
| 45 # Why: A search for a stock | 45 # Why: A search for a stock |
| 46 'http://www.google.com/search?q=goog', | 46 'http://www.google.com/search?q=goog', |
| 47 # Why: Charts | 47 # Why: Charts |
| 48 'https://www.google.com/search?q=population+of+california', | 48 'https://www.google.com/search?q=population+of+california', |
| 49 # Why: Flights | 49 # Why: Flights |
| 50 'http://www.google.com/search?q=sfo+jfk+flights', | 50 'http://www.google.com/search?q=sfo+jfk+flights', |
| 51 # Why: Movie showtimes | 51 # Why: Movie showtimes |
| 52 'https://www.google.com/search?q=movies+94110', | 52 'https://www.google.com/search?q=movies+94110', |
| 53 # Why: A tip calculator | 53 # Why: A tip calculator |
| 54 'http://www.google.com/search?q=tip+on+100+bill', | 54 'http://www.google.com/search?q=tip+on+100+bill', |
| 55 # Why: Time | 55 # Why: Time |
| 56 'https://www.google.com/search?q=time+in+san+francisco', | 56 'https://www.google.com/search?q=time+in+san+francisco', |
| 57 # Why: Definitions | 57 # Why: Definitions |
| 58 'http://www.google.com/search?q=define+define', | 58 'http://www.google.com/search?q=define+define', |
| 59 # Why: Local results | 59 # Why: Local results |
| 60 'https://www.google.com/search?q=burritos+94110', | 60 'https://www.google.com/search?q=burritos+94110', |
| 61 # Why: Graph | 61 # Why: Graph |
| 62 'http://www.google.com/search?q=x^3' | 62 'http://www.google.com/search?q=x^3' |
| 63 ] | 63 ] |
| 64 | 64 |
| 65 for url in urls_list: | 65 for url in urls_list: |
| 66 self.AddStory(KeySearchMobilePage(url, self)) | 66 self.AddStory(KeySearchMobilePage(url, self)) |
| OLD | NEW |