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

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

Issue 2693973002: Add Javascript-Heavy tags for system health stories with heavy uses of JS (Closed)
Patch Set: Rebase 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
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 system_health_story 7 from page_sets.system_health import system_health_story
7 8
8 from page_sets.login_helpers import dropbox_login 9 from page_sets.login_helpers import dropbox_login
9 from page_sets.login_helpers import google_login 10 from page_sets.login_helpers import google_login
10 11
11 from telemetry import decorators 12 from telemetry import decorators
12 13
13 14
14 class _LoadingStory(system_health_story.SystemHealthStory): 15 class _LoadingStory(system_health_story.SystemHealthStory):
15 """Abstract base class for single-page System Health user stories.""" 16 """Abstract base class for single-page System Health user stories."""
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 94
94 95
95 class LoadInstagramStory(_LoadingStory): 96 class LoadInstagramStory(_LoadingStory):
96 NAME = 'load:social:instagram' 97 NAME = 'load:social:instagram'
97 URL = 'https://www.instagram.com/selenagomez/' 98 URL = 'https://www.instagram.com/selenagomez/'
98 99
99 100
100 class LoadPinterestStory(_LoadingStory): 101 class LoadPinterestStory(_LoadingStory):
101 NAME = 'load:social:pinterest' 102 NAME = 'load:social:pinterest'
102 URL = 'https://uk.pinterest.com/categories/popular/' 103 URL = 'https://uk.pinterest.com/categories/popular/'
104 TAGS = [story_tags.JAVASCRIPT_HEAVY]
103 105
104 106
105 class LoadTumblrStory(_LoadingStory): 107 class LoadTumblrStory(_LoadingStory):
106 NAME = 'load:social:tumblr' 108 NAME = 'load:social:tumblr'
107 # Redirects to the "http://" version. 109 # Redirects to the "http://" version.
108 URL = 'https://50thousand.tumblr.com/' 110 URL = 'https://50thousand.tumblr.com/'
111 TAGS = [story_tags.JAVASCRIPT_HEAVY]
109 112
110 113
111 ################################################################################ 114 ################################################################################
112 # News, discussion and knowledge portals and blogs. 115 # News, discussion and knowledge portals and blogs.
113 ################################################################################ 116 ################################################################################
114 117
115 118
116 class LoadBbcStory(_LoadingStory): 119 class LoadBbcStory(_LoadingStory):
117 NAME = 'load:news:bbc' 120 NAME = 'load:news:bbc'
118 # Redirects to the "http://" version. 121 # Redirects to the "http://" version.
119 URL = 'https://www.bbc.co.uk/news/world-asia-china-36189636' 122 URL = 'https://www.bbc.co.uk/news/world-asia-china-36189636'
120 123
121 124
122 class LoadCnnStory(_LoadingStory): 125 class LoadCnnStory(_LoadingStory):
123 NAME = 'load:news:cnn' 126 NAME = 'load:news:cnn'
124 # Using "https://" shows "Your connection is not private". 127 # Using "https://" shows "Your connection is not private".
125 URL = 'http://edition.cnn.com' 128 URL = 'http://edition.cnn.com'
129 TAGS = [story_tags.JAVASCRIPT_HEAVY]
126 130
127 131
128 class LoadFlipboardStory(_LoadingStory): 132 class LoadFlipboardStory(_LoadingStory):
129 NAME = 'load:news:flipboard' 133 NAME = 'load:news:flipboard'
130 URL = 'https://flipboard.com/explore' 134 URL = 'https://flipboard.com/explore'
131 135
132 136
133 class LoadHackerNewsStory(_LoadingStory): 137 class LoadHackerNewsStory(_LoadingStory):
134 NAME = 'load:news:hackernews' 138 NAME = 'load:news:hackernews'
135 URL = 'https://news.ycombinator.com' 139 URL = 'https://news.ycombinator.com'
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 NAME = 'load:tools:dropbox' 339 NAME = 'load:tools:dropbox'
336 URL = 'https://www.dropbox.com' 340 URL = 'https://www.dropbox.com'
337 341
338 def _Login(self, action_runner): 342 def _Login(self, action_runner):
339 dropbox_login.LoginAccount(action_runner, 'dropbox', self.credentials_path) 343 dropbox_login.LoginAccount(action_runner, 'dropbox', self.credentials_path)
340 344
341 345
342 class LoadWeatherStory(_LoadingStory): 346 class LoadWeatherStory(_LoadingStory):
343 NAME = 'load:tools:weather' 347 NAME = 'load:tools:weather'
344 URL = 'https://weather.com/en-GB/weather/today/l/USCA0286:1:US' 348 URL = 'https://weather.com/en-GB/weather/today/l/USCA0286:1:US'
349 TAGS = [story_tags.JAVASCRIPT_HEAVY]
345 350
346 351
347 class LoadDriveStory(_LoadingStory): 352 class LoadDriveStory(_LoadingStory):
348 NAME = 'load:tools:drive' 353 NAME = 'load:tools:drive'
349 URL = 'https://drive.google.com/drive/my-drive' 354 URL = 'https://drive.google.com/drive/my-drive'
355 TAGS = [story_tags.JAVASCRIPT_HEAVY]
350 356
351 def _Login(self, action_runner): 357 def _Login(self, action_runner):
352 google_login.LoginGoogleAccount(action_runner, 'googletest', 358 google_login.LoginGoogleAccount(action_runner, 'googletest',
353 self.credentials_path) 359 self.credentials_path)
354 360
355 361
356 ################################################################################ 362 ################################################################################
357 # In-browser games (HTML5 and Flash). 363 # In-browser games (HTML5 and Flash).
358 ################################################################################ 364 ################################################################################
359 365
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 NAME = 'load:games:miniclip' 398 NAME = 'load:games:miniclip'
393 # Using "https://" causes "404 Not Found" during WPR recording. 399 # Using "https://" causes "404 Not Found" during WPR recording.
394 URL = 'http://www.miniclip.com/games/en/' 400 URL = 'http://www.miniclip.com/games/en/'
395 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY # Requires Flash. 401 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY # Requires Flash.
396 402
397 403
398 class LoadAlphabettyStory(_LoadingStory): 404 class LoadAlphabettyStory(_LoadingStory):
399 NAME = 'load:games:alphabetty' 405 NAME = 'load:games:alphabetty'
400 URL = 'https://king.com/play/alphabetty' 406 URL = 'https://king.com/play/alphabetty'
401 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY # Requires Flash. 407 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY # Requires Flash.
OLDNEW
« no previous file with comments | « tools/perf/page_sets/system_health/browsing_stories.py ('k') | tools/perf/page_sets/system_health/story_tags.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698