Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: tools/perf/page_sets/system_health/loading_stories.py

Issue 2698063003: [System health] Tag all the international pages (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/perf/page_sets/system_health/browsing_stories.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 from page_sets.system_health import platforms 5 from page_sets.system_health import platforms
6 from page_sets.system_health import story_tags 6 from page_sets.system_health import story_tags
7 from page_sets.system_health import system_health_story 7 from page_sets.system_health import system_health_story
8 8
9 from page_sets.login_helpers import dropbox_login 9 from page_sets.login_helpers import dropbox_login
10 from page_sets.login_helpers import google_login 10 from page_sets.login_helpers import google_login
(...skipping 13 matching lines...) Expand all
24 24
25 25
26 class LoadGoogleStory(_LoadingStory): 26 class LoadGoogleStory(_LoadingStory):
27 NAME = 'load:search:google' 27 NAME = 'load:search:google'
28 URL = 'https://www.google.co.uk/' 28 URL = 'https://www.google.co.uk/'
29 29
30 30
31 class LoadBaiduStory(_LoadingStory): 31 class LoadBaiduStory(_LoadingStory):
32 NAME = 'load:search:baidu' 32 NAME = 'load:search:baidu'
33 URL = 'https://www.baidu.com/s?word=google' 33 URL = 'https://www.baidu.com/s?word=google'
34 TAGS = [story_tags.INTERNATIONAL]
34 35
35 36
36 class LoadYahooStory(_LoadingStory): 37 class LoadYahooStory(_LoadingStory):
37 NAME = 'load:search:yahoo' 38 NAME = 'load:search:yahoo'
38 URL = 'https://search.yahoo.com/search;_ylt=?p=google' 39 URL = 'https://search.yahoo.com/search;_ylt=?p=google'
39 40
40 41
41 class LoadAmazonStory(_LoadingStory): 42 class LoadAmazonStory(_LoadingStory):
42 NAME = 'load:search:amazon' 43 NAME = 'load:search:amazon'
43 URL = 'https://www.amazon.com/s/?field-keywords=nexus' 44 URL = 'https://www.amazon.com/s/?field-keywords=nexus'
44 45
45 46
46 class LoadTaobaoDesktopStory(_LoadingStory): 47 class LoadTaobaoDesktopStory(_LoadingStory):
47 NAME = 'load:search:taobao' 48 NAME = 'load:search:taobao'
48 URL = 'https://world.taobao.com/' 49 URL = 'https://world.taobao.com/'
49 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY 50 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY
51 TAGS = [story_tags.INTERNATIONAL]
50 52
51 53
52 class LoadTaobaoMobileStory(_LoadingStory): 54 class LoadTaobaoMobileStory(_LoadingStory):
53 NAME = 'load:search:taobao' 55 NAME = 'load:search:taobao'
54 # "ali_trackid" in the URL suppresses "Download app" interstitial. 56 # "ali_trackid" in the URL suppresses "Download app" interstitial.
55 URL = 'http://m.intl.taobao.com/?ali_trackid' 57 URL = 'http://m.intl.taobao.com/?ali_trackid'
56 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY 58 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
59 TAGS = [story_tags.INTERNATIONAL]
57 60
58 61
59 class LoadYandexStory(_LoadingStory): 62 class LoadYandexStory(_LoadingStory):
60 NAME = 'load:search:yandex' 63 NAME = 'load:search:yandex'
61 URL = 'https://yandex.ru/touchsearch?text=science' 64 URL = 'https://yandex.ru/touchsearch?text=science'
65 TAGS = [story_tags.INTERNATIONAL]
62 66
63 67
64 class LoadEbayStory(_LoadingStory): 68 class LoadEbayStory(_LoadingStory):
65 NAME = 'load:search:ebay' 69 NAME = 'load:search:ebay'
66 # Redirects to the "http://" version. 70 # Redirects to the "http://" version.
67 URL = 'https://www.ebay.com/sch/i.html?_nkw=headphones' 71 URL = 'https://www.ebay.com/sch/i.html?_nkw=headphones'
68 72
69 73
70 ################################################################################ 74 ################################################################################
71 # Social networks. 75 # Social networks.
(...skipping 12 matching lines...) Expand all
84 88
85 89
86 class LoadVkStory(_LoadingStory): 90 class LoadVkStory(_LoadingStory):
87 NAME = 'load:social:vk' 91 NAME = 'load:social:vk'
88 URL = 'https://vk.com/sbeatles' 92 URL = 'https://vk.com/sbeatles'
89 # Due to the deterministic date injected by WPR (February 2008), the cookie 93 # Due to the deterministic date injected by WPR (February 2008), the cookie
90 # set by https://vk.com immediately expires, so the page keeps refreshing 94 # set by https://vk.com immediately expires, so the page keeps refreshing
91 # indefinitely on mobile 95 # indefinitely on mobile
92 # (see https://github.com/chromium/web-page-replay/issues/71). 96 # (see https://github.com/chromium/web-page-replay/issues/71).
93 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY 97 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY
98 TAGS = [story_tags.INTERNATIONAL]
94 99
95 100
96 class LoadInstagramStory(_LoadingStory): 101 class LoadInstagramStory(_LoadingStory):
97 NAME = 'load:social:instagram' 102 NAME = 'load:social:instagram'
98 URL = 'https://www.instagram.com/selenagomez/' 103 URL = 'https://www.instagram.com/selenagomez/'
99 104
100 105
101 class LoadPinterestStory(_LoadingStory): 106 class LoadPinterestStory(_LoadingStory):
102 NAME = 'load:social:pinterest' 107 NAME = 'load:social:pinterest'
103 URL = 'https://uk.pinterest.com/categories/popular/' 108 URL = 'https://uk.pinterest.com/categories/popular/'
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 class LoadNytimesMobileStory(_LoadingStory): 153 class LoadNytimesMobileStory(_LoadingStory):
149 NAME = 'load:news:nytimes' 154 NAME = 'load:news:nytimes'
150 URL = 'http://mobile.nytimes.com' 155 URL = 'http://mobile.nytimes.com'
151 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY 156 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
152 157
153 158
154 class LoadQqMobileStory(_LoadingStory): 159 class LoadQqMobileStory(_LoadingStory):
155 NAME = 'load:news:qq' 160 NAME = 'load:news:qq'
156 # Using "https://" hangs and shows "This site can't be reached". 161 # Using "https://" hangs and shows "This site can't be reached".
157 URL = 'http://news.qq.com' 162 URL = 'http://news.qq.com'
163 TAGS = [story_tags.INTERNATIONAL]
158 164
159 165
160 class LoadRedditDesktopStory(_LoadingStory): 166 class LoadRedditDesktopStory(_LoadingStory):
161 NAME = 'load:news:reddit' 167 NAME = 'load:news:reddit'
162 URL = 'https://www.reddit.com/r/news/top/?sort=top&t=week' 168 URL = 'https://www.reddit.com/r/news/top/?sort=top&t=week'
163 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY 169 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY
164 170
165 171
166 class LoadRedditMobileStory(_LoadingStory): 172 class LoadRedditMobileStory(_LoadingStory):
167 NAME = 'load:news:reddit' 173 NAME = 'load:news:reddit'
168 URL = 'https://www.reddit.com/r/news/top/?sort=top&t=week' 174 URL = 'https://www.reddit.com/r/news/top/?sort=top&t=week'
169 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY 175 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
170 176
171 177
172 class LoadSohuMobileStory(_LoadingStory): 178 class LoadSohuMobileStory(_LoadingStory):
173 NAME = 'load:news:sohu' 179 NAME = 'load:news:sohu'
174 # Using "https://" leads to missing images and scripts on mobile (due to 180 # Using "https://" leads to missing images and scripts on mobile (due to
175 # mixed content). 181 # mixed content).
176 URL = 'http://m.sohu.com/n/447433356/' 182 URL = 'http://m.sohu.com/n/447433356/'
177 # The desktop page (http://news.sohu.com/20160503/n447433356.shtml) almost 183 # The desktop page (http://news.sohu.com/20160503/n447433356.shtml) almost
178 # always fails to completely load due to 184 # always fails to completely load due to
179 # https://github.com/chromium/web-page-replay/issues/74. 185 # https://github.com/chromium/web-page-replay/issues/74.
180 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY 186 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
187 TAGS = [story_tags.INTERNATIONAL]
181 188
182 189
183 class LoadWashingtonPostMobileStory(_LoadingStory): 190 class LoadWashingtonPostMobileStory(_LoadingStory):
184 NAME = 'load:news:washingtonpost' 191 NAME = 'load:news:washingtonpost'
185 URL = 'https://www.washingtonpost.com/pwa' 192 URL = 'https://www.washingtonpost.com/pwa'
186 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY 193 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
187 _CLOSE_BUTTON_SELECTOR = '.close' 194 _CLOSE_BUTTON_SELECTOR = '.close'
188 195
189 def _DidLoadDocument(self, action_runner): 196 def _DidLoadDocument(self, action_runner):
190 # Close the popup window. On Nexus 9 (and probably other tables) the popup 197 # Close the popup window. On Nexus 9 (and probably other tables) the popup
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 NAME = 'load:games:miniclip' 405 NAME = 'load:games:miniclip'
399 # Using "https://" causes "404 Not Found" during WPR recording. 406 # Using "https://" causes "404 Not Found" during WPR recording.
400 URL = 'http://www.miniclip.com/games/en/' 407 URL = 'http://www.miniclip.com/games/en/'
401 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY # Requires Flash. 408 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY # Requires Flash.
402 409
403 410
404 class LoadAlphabettyStory(_LoadingStory): 411 class LoadAlphabettyStory(_LoadingStory):
405 NAME = 'load:games:alphabetty' 412 NAME = 'load:games:alphabetty'
406 URL = 'https://king.com/play/alphabetty' 413 URL = 'https://king.com/play/alphabetty'
407 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY # Requires Flash. 414 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY # Requires Flash.
OLDNEW
« no previous file with comments | « tools/perf/page_sets/system_health/browsing_stories.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698