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

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

Issue 2168743004: [system health] Add media browsing stories. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments, getting close to shipping Created 4 years, 4 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 system_health_story 6 from page_sets.system_health import system_health_story
7 7
8 from page_sets.login_helpers import dropbox_login 8 from page_sets.login_helpers import dropbox_login
9 from page_sets.login_helpers import google_login 9 from page_sets.login_helpers import google_login
10 10
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 if has_button: 189 if has_button:
190 action_runner.ClickElement(selector=self._CLOSE_BUTTON_SELECTOR) 190 action_runner.ClickElement(selector=self._CLOSE_BUTTON_SELECTOR)
191 191
192 192
193 class LoadWikipediaStory(_LoadingStory): 193 class LoadWikipediaStory(_LoadingStory):
194 NAME = 'load:news:wikipedia' 194 NAME = 'load:news:wikipedia'
195 URL = 'https://en.wikipedia.org/wiki/Science' 195 URL = 'https://en.wikipedia.org/wiki/Science'
196 196
197 197
198 ################################################################################ 198 ################################################################################
199 # Audio and video. 199 # Audio, images, and video.
200 ################################################################################ 200 ################################################################################
201 201
202 202
203 class LoadYouTubeStory(_LoadingStory): 203 class LoadYouTubeStory(_LoadingStory):
204 # No way to disable autoplay on desktop. 204 # No way to disable autoplay on desktop.
205 NAME = 'load:media:youtube' 205 NAME = 'load:media:youtube'
206 URL = 'https://www.youtube.com/watch?v=QGfhS1hfTWw&autoplay=false' 206 URL = 'https://www.youtube.com/watch?v=QGfhS1hfTWw&autoplay=false'
207 207
208 208
209 class LoadDailymotionStory(_LoadingStory): 209 class LoadDailymotionStory(_LoadingStory):
(...skipping 24 matching lines...) Expand all
234 class LoadFlickr(_LoadingStory): 234 class LoadFlickr(_LoadingStory):
235 NAME = 'load:media:flickr' 235 NAME = 'load:media:flickr'
236 URL = 'https://www.flickr.com/photos/tags/farm' 236 URL = 'https://www.flickr.com/photos/tags/farm'
237 237
238 def _DidLoadDocument(self, action_runner): 238 def _DidLoadDocument(self, action_runner):
239 # Wait until the 'Recently tagged' view loads. 239 # Wait until the 'Recently tagged' view loads.
240 action_runner.WaitForJavaScriptCondition(''' 240 action_runner.WaitForJavaScriptCondition('''
241 document.querySelector( 241 document.querySelector(
242 '.search-photos-everyone-trending-view .photo-list-view') 242 '.search-photos-everyone-trending-view .photo-list-view')
243 !== null''') 243 !== null''')
244 244
petrcermak 2016/08/04 13:32:42 nit: add blank line (there should be two blank lin
Hannes Payer (out of office) 2016/08/05 10:21:05 Done.
245 class LoadImgur(_LoadingStory):
246 NAME = 'load:media:imgur'
247 URL = 'http://imgur.com/gallery/5UlBN'
248
245 249
246 ################################################################################ 250 ################################################################################
247 # Online tools (documents, emails, storage, ...). 251 # Online tools (documents, emails, storage, ...).
248 ################################################################################ 252 ################################################################################
249 253
250 254
251 class LoadDocsStory(_LoadingStory): 255 class LoadDocsStory(_LoadingStory):
252 NAME = 'load:tools:docs' 256 NAME = 'load:tools:docs'
253 URL = ( 257 URL = (
254 'https://docs.google.com/document/d/1GvzDP-tTLmJ0myRhUAfTYWs3ZUFilUICg8psN HyccwQ/edit?usp=sharing') 258 'https://docs.google.com/document/d/1GvzDP-tTLmJ0myRhUAfTYWs3ZUFilUICg8psN HyccwQ/edit?usp=sharing')
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 URL = 'http://www.miniclip.com/games/en/' 373 URL = 'http://www.miniclip.com/games/en/'
370 # Desktop only (requires Flash). 374 # Desktop only (requires Flash).
371 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY 375 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY
372 376
373 377
374 class LoadAlphabettyStory(_LoadingStory): 378 class LoadAlphabettyStory(_LoadingStory):
375 NAME = 'load:games:alphabetty' 379 NAME = 'load:games:alphabetty'
376 URL = 'https://king.com/play/alphabetty' 380 URL = 'https://king.com/play/alphabetty'
377 # Desktop only (requires Flash). 381 # Desktop only (requires Flash).
378 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY 382 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698