OLD | NEW |
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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 if has_button: | 190 if has_button: |
191 action_runner.ClickElement(selector=self._CLOSE_BUTTON_SELECTOR) | 191 action_runner.ClickElement(selector=self._CLOSE_BUTTON_SELECTOR) |
192 | 192 |
193 | 193 |
194 class LoadWikipediaStory(_LoadingStory): | 194 class LoadWikipediaStory(_LoadingStory): |
195 NAME = 'load:news:wikipedia' | 195 NAME = 'load:news:wikipedia' |
196 URL = 'https://en.wikipedia.org/wiki/Science' | 196 URL = 'https://en.wikipedia.org/wiki/Science' |
197 | 197 |
198 | 198 |
199 ################################################################################ | 199 ################################################################################ |
200 # Audio and video. | 200 # Audio, images, and video. |
201 ################################################################################ | 201 ################################################################################ |
202 | 202 |
203 | 203 |
204 class LoadYouTubeStory(_LoadingStory): | 204 class LoadYouTubeStory(_LoadingStory): |
205 # No way to disable autoplay on desktop. | 205 # No way to disable autoplay on desktop. |
206 NAME = 'load:media:youtube' | 206 NAME = 'load:media:youtube' |
207 URL = 'https://www.youtube.com/watch?v=QGfhS1hfTWw&autoplay=false' | 207 URL = 'https://www.youtube.com/watch?v=QGfhS1hfTWw&autoplay=false' |
208 | 208 |
209 | 209 |
210 class LoadDailymotionStory(_LoadingStory): | 210 class LoadDailymotionStory(_LoadingStory): |
(...skipping 26 matching lines...) Expand all Loading... |
237 URL = 'https://www.flickr.com/photos/tags/farm' | 237 URL = 'https://www.flickr.com/photos/tags/farm' |
238 | 238 |
239 def _DidLoadDocument(self, action_runner): | 239 def _DidLoadDocument(self, action_runner): |
240 # Wait until the 'Recently tagged' view loads. | 240 # Wait until the 'Recently tagged' view loads. |
241 action_runner.WaitForJavaScriptCondition(''' | 241 action_runner.WaitForJavaScriptCondition(''' |
242 document.querySelector( | 242 document.querySelector( |
243 '.search-photos-everyone-trending-view .photo-list-view') | 243 '.search-photos-everyone-trending-view .photo-list-view') |
244 !== null''') | 244 !== null''') |
245 | 245 |
246 | 246 |
| 247 class LoadImgur(_LoadingStory): |
| 248 NAME = 'load:media:imgur' |
| 249 URL = 'http://imgur.com/gallery/5UlBN' |
| 250 |
| 251 |
247 ################################################################################ | 252 ################################################################################ |
248 # Online tools (documents, emails, storage, ...). | 253 # Online tools (documents, emails, storage, ...). |
249 ################################################################################ | 254 ################################################################################ |
250 | 255 |
251 | 256 |
252 class LoadDocsStory(_LoadingStory): | 257 class LoadDocsStory(_LoadingStory): |
253 NAME = 'load:tools:docs' | 258 NAME = 'load:tools:docs' |
254 URL = ( | 259 URL = ( |
255 'https://docs.google.com/document/d/1GvzDP-tTLmJ0myRhUAfTYWs3ZUFilUICg8psN
HyccwQ/edit?usp=sharing') | 260 'https://docs.google.com/document/d/1GvzDP-tTLmJ0myRhUAfTYWs3ZUFilUICg8psN
HyccwQ/edit?usp=sharing') |
256 | 261 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 URL = 'http://www.miniclip.com/games/en/' | 375 URL = 'http://www.miniclip.com/games/en/' |
371 # Desktop only (requires Flash). | 376 # Desktop only (requires Flash). |
372 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY | 377 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY |
373 | 378 |
374 | 379 |
375 class LoadAlphabettyStory(_LoadingStory): | 380 class LoadAlphabettyStory(_LoadingStory): |
376 NAME = 'load:games:alphabetty' | 381 NAME = 'load:games:alphabetty' |
377 URL = 'https://king.com/play/alphabetty' | 382 URL = 'https://king.com/play/alphabetty' |
378 # Desktop only (requires Flash). | 383 # Desktop only (requires Flash). |
379 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY | 384 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY |
OLD | NEW |