| 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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 | 302 |
| 303 class LoadGmailDesktopStory(_LoadGmailBaseStory): | 303 class LoadGmailDesktopStory(_LoadGmailBaseStory): |
| 304 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY | 304 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY |
| 305 | 305 |
| 306 def _DidLoadDocument(self, action_runner): | 306 def _DidLoadDocument(self, action_runner): |
| 307 # Wait until the UI loads. | 307 # Wait until the UI loads. |
| 308 action_runner.WaitForJavaScriptCondition( | 308 action_runner.WaitForJavaScriptCondition( |
| 309 'document.getElementById("loading").style.display === "none"') | 309 'document.getElementById("loading").style.display === "none"') |
| 310 | 310 |
| 311 | 311 |
| 312 @decorators.Disabled('android') # crbug.com.com/664505 | 312 @decorators.Disabled('android') # crbug.com/657433 |
| 313 class LoadGmailMobileStory(_LoadGmailBaseStory): | 313 class LoadGmailMobileStory(_LoadGmailBaseStory): |
| 314 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 314 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY |
| 315 | 315 |
| 316 def _DidLoadDocument(self, action_runner): | 316 def _DidLoadDocument(self, action_runner): |
| 317 # Wait until the UI loads. | 317 # Wait until the UI loads. |
| 318 action_runner.WaitForElement('#apploadingdiv') | 318 action_runner.WaitForElement('#apploadingdiv') |
| 319 action_runner.WaitForJavaScriptCondition( | 319 action_runner.WaitForJavaScriptCondition( |
| 320 'document.getElementById("apploadingdiv").style.height === "0px"') | 320 'document.getElementById("apploadingdiv").style.height === "0px"') |
| 321 | 321 |
| 322 class LoadMapsStory(_LoadingStory): | 322 class LoadMapsStory(_LoadingStory): |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 NAME = 'load:games:miniclip' | 391 NAME = 'load:games:miniclip' |
| 392 # Using "https://" causes "404 Not Found" during WPR recording. | 392 # Using "https://" causes "404 Not Found" during WPR recording. |
| 393 URL = 'http://www.miniclip.com/games/en/' | 393 URL = 'http://www.miniclip.com/games/en/' |
| 394 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY # Requires Flash. | 394 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY # Requires Flash. |
| 395 | 395 |
| 396 | 396 |
| 397 class LoadAlphabettyStory(_LoadingStory): | 397 class LoadAlphabettyStory(_LoadingStory): |
| 398 NAME = 'load:games:alphabetty' | 398 NAME = 'load:games:alphabetty' |
| 399 URL = 'https://king.com/play/alphabetty' | 399 URL = 'https://king.com/play/alphabetty' |
| 400 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY # Requires Flash. | 400 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY # Requires Flash. |
| OLD | NEW |