| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 26 matching lines...) Expand all Loading... |
| 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 |
| 245 | 245 |
| 246 class LoadImgur(_LoadingStory): |
| 247 NAME = 'load:media:imgur' |
| 248 URL = 'http://imgur.com/gallery/5UlBN' |
| 249 |
| 250 |
| 246 ################################################################################ | 251 ################################################################################ |
| 247 # Online tools (documents, emails, storage, ...). | 252 # Online tools (documents, emails, storage, ...). |
| 248 ################################################################################ | 253 ################################################################################ |
| 249 | 254 |
| 250 | 255 |
| 251 class LoadDocsStory(_LoadingStory): | 256 class LoadDocsStory(_LoadingStory): |
| 252 NAME = 'load:tools:docs' | 257 NAME = 'load:tools:docs' |
| 253 URL = ( | 258 URL = ( |
| 254 'https://docs.google.com/document/d/1GvzDP-tTLmJ0myRhUAfTYWs3ZUFilUICg8psN
HyccwQ/edit?usp=sharing') | 259 'https://docs.google.com/document/d/1GvzDP-tTLmJ0myRhUAfTYWs3ZUFilUICg8psN
HyccwQ/edit?usp=sharing') |
| 255 | 260 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 URL = 'http://www.miniclip.com/games/en/' | 374 URL = 'http://www.miniclip.com/games/en/' |
| 370 # Desktop only (requires Flash). | 375 # Desktop only (requires Flash). |
| 371 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY | 376 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY |
| 372 | 377 |
| 373 | 378 |
| 374 class LoadAlphabettyStory(_LoadingStory): | 379 class LoadAlphabettyStory(_LoadingStory): |
| 375 NAME = 'load:games:alphabetty' | 380 NAME = 'load:games:alphabetty' |
| 376 URL = 'https://king.com/play/alphabetty' | 381 URL = 'https://king.com/play/alphabetty' |
| 377 # Desktop only (requires Flash). | 382 # Desktop only (requires Flash). |
| 378 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY | 383 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY |
| OLD | NEW |