| 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 import story | 4 from telemetry import story |
| 5 from telemetry.page import page as page_module | 5 from telemetry.page import page as page_module |
| 6 from telemetry.page import shared_page_state | 6 from telemetry.page import shared_page_state |
| 7 | 7 |
| 8 | 8 |
| 9 class SimplePage(page_module.Page): | 9 class SimplePage(page_module.Page): |
| 10 | 10 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 144 |
| 145 | 145 |
| 146 class TextSelectionSitesPageSet(story.StorySet): | 146 class TextSelectionSitesPageSet(story.StorySet): |
| 147 def __init__(self): | 147 def __init__(self): |
| 148 super(TextSelectionSitesPageSet, self).__init__( | 148 super(TextSelectionSitesPageSet, self).__init__( |
| 149 archive_data_file='data/top_10_mobile.json', | 149 archive_data_file='data/top_10_mobile.json', |
| 150 cloud_storage_bucket=story.PARTNER_BUCKET) | 150 cloud_storage_bucket=story.PARTNER_BUCKET) |
| 151 | 151 |
| 152 # A subset of top_10_mobile page set | 152 # A subset of top_10_mobile page set |
| 153 page_urls = [ | 153 page_urls = [ |
| 154 'https://www.google.com/#hl=en&q=science', | 154 'https://www.google.ca/#hl=en&q=science', |
| 155 'https://m.facebook.com/rihanna', | 155 'https://m.facebook.com/rihanna', |
| 156 'http://search.yahoo.com/search;_ylt=?p=google', | 156 'http://search.yahoo.com/search;_ylt=?p=google', |
| 157 'http://www.baidu.com/s?word=google', | 157 'http://www.baidu.com/s?word=google', |
| 158 'https://mobile.twitter.com/justinbieber?skip_interstitial=true', | 158 'https://mobile.twitter.com/justinbieber?skip_interstitial=true', |
| 159 'http://yandex.ru/touchsearch?text=science' | 159 'http://yandex.ru/touchsearch?text=science' |
| 160 ] | 160 ] |
| 161 | 161 |
| 162 for url in page_urls: | 162 for url in page_urls: |
| 163 self.AddStory(SimpleTextSelectionPage(url, self)) | 163 self.AddStory(SimpleTextSelectionPage(url, self)) |
| OLD | NEW |