| 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 |
| 11 from telemetry import decorators |
| 12 |
| 11 | 13 |
| 12 class _LoadingStory(system_health_story.SystemHealthStory): | 14 class _LoadingStory(system_health_story.SystemHealthStory): |
| 13 """Abstract base class for single-page System Health user stories.""" | 15 """Abstract base class for single-page System Health user stories.""" |
| 14 ABSTRACT_STORY = True | 16 ABSTRACT_STORY = True |
| 15 | 17 |
| 16 | 18 |
| 17 ################################################################################ | 19 ################################################################################ |
| 18 # Search and e-commerce. | 20 # Search and e-commerce. |
| 19 ################################################################################ | 21 ################################################################################ |
| 20 # TODO(petrcermak): Split these into 'portal' and 'shopping' stories. | 22 # TODO(petrcermak): Split these into 'portal' and 'shopping' stories. |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 # Using "https://" shows "Your connection is not private". | 376 # Using "https://" shows "Your connection is not private". |
| 375 URL = 'http://playstar.mobi/games/spychase/index.php' | 377 URL = 'http://playstar.mobi/games/spychase/index.php' |
| 376 | 378 |
| 377 def _DidLoadDocument(self, action_runner): | 379 def _DidLoadDocument(self, action_runner): |
| 378 # The background of the game canvas is set when the "Tap screen to play" | 380 # The background of the game canvas is set when the "Tap screen to play" |
| 379 # caption is displayed. | 381 # caption is displayed. |
| 380 action_runner.WaitForJavaScriptCondition( | 382 action_runner.WaitForJavaScriptCondition( |
| 381 'document.querySelector("#game canvas").style.background !== ""') | 383 'document.querySelector("#game canvas").style.background !== ""') |
| 382 | 384 |
| 383 | 385 |
| 386 @decorators.Disabled('mac') # crbug.com/664661 |
| 384 class LoadMiniclipStory(_LoadingStory): | 387 class LoadMiniclipStory(_LoadingStory): |
| 385 NAME = 'load:games:miniclip' | 388 NAME = 'load:games:miniclip' |
| 386 # Using "https://" causes "404 Not Found" during WPR recording. | 389 # Using "https://" causes "404 Not Found" during WPR recording. |
| 387 URL = 'http://www.miniclip.com/games/en/' | 390 URL = 'http://www.miniclip.com/games/en/' |
| 388 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY # Requires Flash. | 391 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY # Requires Flash. |
| 389 | 392 |
| 390 | 393 |
| 391 class LoadAlphabettyStory(_LoadingStory): | 394 class LoadAlphabettyStory(_LoadingStory): |
| 392 NAME = 'load:games:alphabetty' | 395 NAME = 'load:games:alphabetty' |
| 393 URL = 'https://king.com/play/alphabetty' | 396 URL = 'https://king.com/play/alphabetty' |
| 394 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY # Requires Flash. | 397 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY # Requires Flash. |
| OLD | NEW |