Chromium Code Reviews| 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 story_tags | 6 from page_sets.system_health import story_tags |
| 7 from page_sets.system_health import system_health_story | 7 from page_sets.system_health import system_health_story |
| 8 | 8 |
| 9 from page_sets.login_helpers import dropbox_login | 9 from page_sets.login_helpers import dropbox_login |
| 10 from page_sets.login_helpers import google_login | 10 from page_sets.login_helpers import google_login |
| 11 | 11 |
| 12 from telemetry import decorators | 12 from telemetry import decorators |
| 13 | 13 |
| 14 | 14 |
| 15 class _LoadingStory(system_health_story.SystemHealthStory): | 15 class _LoadingStory(system_health_story.SystemHealthStory): |
| 16 """Abstract base class for single-page System Health user stories.""" | 16 """Abstract base class for single-page System Health user stories. |
| 17 """ | |
|
perezju
2017/05/18 09:52:35
nit: no need to push quotes down if title fits in
nednguyen
2017/05/18 14:02:58
Done.
| |
| 17 ABSTRACT_STORY = True | 18 ABSTRACT_STORY = True |
| 18 | 19 |
| 20 @classmethod | |
| 21 def GetStoryDescription(cls): | |
| 22 if not cls.ABSTRACT_STORY and not cls.__doc__: | |
| 23 return 'Load %s' % cls.URL | |
| 24 | |
| 19 | 25 |
| 20 ################################################################################ | 26 ################################################################################ |
| 21 # Search and e-commerce. | 27 # Search and e-commerce. |
| 22 ################################################################################ | 28 ################################################################################ |
| 23 # TODO(petrcermak): Split these into 'portal' and 'shopping' stories. | 29 # TODO(petrcermak): Split these into 'portal' and 'shopping' stories. |
| 24 | 30 |
| 25 | 31 |
| 26 class LoadGoogleStory(_LoadingStory): | 32 class LoadGoogleStory(_LoadingStory): |
| 27 NAME = 'load:search:google' | 33 NAME = 'load:search:google' |
| 28 URL = 'https://www.google.co.uk/' | 34 URL = 'https://www.google.co.uk/' |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 405 NAME = 'load:games:miniclip' | 411 NAME = 'load:games:miniclip' |
| 406 # Using "https://" causes "404 Not Found" during WPR recording. | 412 # Using "https://" causes "404 Not Found" during WPR recording. |
| 407 URL = 'http://www.miniclip.com/games/en/' | 413 URL = 'http://www.miniclip.com/games/en/' |
| 408 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY # Requires Flash. | 414 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY # Requires Flash. |
| 409 | 415 |
| 410 | 416 |
| 411 class LoadAlphabettyStory(_LoadingStory): | 417 class LoadAlphabettyStory(_LoadingStory): |
| 412 NAME = 'load:games:alphabetty' | 418 NAME = 'load:games:alphabetty' |
| 413 URL = 'https://king.com/play/alphabetty' | 419 URL = 'https://king.com/play/alphabetty' |
| 414 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY # Requires Flash. | 420 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY # Requires Flash. |
| OLD | NEW |