| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 URL = 'https://www.reddit.com/r/news/top/?sort=top&t=week' | 156 URL = 'https://www.reddit.com/r/news/top/?sort=top&t=week' |
| 157 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY | 157 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY |
| 158 | 158 |
| 159 | 159 |
| 160 class LoadRedditMobileStory(_LoadingStory): | 160 class LoadRedditMobileStory(_LoadingStory): |
| 161 NAME = 'load:news:reddit' | 161 NAME = 'load:news:reddit' |
| 162 URL = 'https://www.reddit.com/r/news/top/?sort=top&t=week' | 162 URL = 'https://www.reddit.com/r/news/top/?sort=top&t=week' |
| 163 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 163 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY |
| 164 | 164 |
| 165 | 165 |
| 166 class LoadSohuStory(_LoadingStory): | 166 class LoadSohuMobileStory(_LoadingStory): |
| 167 NAME = 'load:news:sohu' | 167 NAME = 'load:news:sohu' |
| 168 # Using "https://" leads to missing images and scripts on mobile (due to | 168 # Using "https://" leads to missing images and scripts on mobile (due to |
| 169 # mixed content). | 169 # mixed content). |
| 170 URL = 'http://m.sohu.com/n/447433356/' | 170 URL = 'http://m.sohu.com/n/447433356/' |
| 171 # The desktop page (http://news.sohu.com/20160503/n447433356.shtml) almost | 171 # The desktop page (http://news.sohu.com/20160503/n447433356.shtml) almost |
| 172 # always fails to completely load due to | 172 # always fails to completely load due to |
| 173 # https://github.com/chromium/web-page-replay/issues/74. | 173 # https://github.com/chromium/web-page-replay/issues/74. |
| 174 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 174 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY |
| 175 | 175 |
| 176 | 176 |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 # The background of the game canvas is set when the "Tap screen to play" | 382 # The background of the game canvas is set when the "Tap screen to play" |
| 383 # caption is displayed. | 383 # caption is displayed. |
| 384 action_runner.WaitForJavaScriptCondition( | 384 action_runner.WaitForJavaScriptCondition( |
| 385 'document.querySelector("#game canvas").style.background !== ""') | 385 'document.querySelector("#game canvas").style.background !== ""') |
| 386 | 386 |
| 387 | 387 |
| 388 class LoadMiniclipStory(_LoadingStory): | 388 class LoadMiniclipStory(_LoadingStory): |
| 389 NAME = 'load:games:miniclip' | 389 NAME = 'load:games:miniclip' |
| 390 # Using "https://" causes "404 Not Found" during WPR recording. | 390 # Using "https://" causes "404 Not Found" during WPR recording. |
| 391 URL = 'http://www.miniclip.com/games/en/' | 391 URL = 'http://www.miniclip.com/games/en/' |
| 392 # Desktop only (requires Flash). | 392 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY # Requires Flash. |
| 393 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY | |
| 394 | 393 |
| 395 | 394 |
| 396 class LoadAlphabettyStory(_LoadingStory): | 395 class LoadAlphabettyStory(_LoadingStory): |
| 397 NAME = 'load:games:alphabetty' | 396 NAME = 'load:games:alphabetty' |
| 398 URL = 'https://king.com/play/alphabetty' | 397 URL = 'https://king.com/play/alphabetty' |
| 399 # Desktop only (requires Flash). | 398 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY # Requires Flash. |
| 400 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY | |
| OLD | NEW |