| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| 177 class LoadWashingtonPostMobileStory(_LoadingStory): | 177 class LoadWashingtonPostMobileStory(_LoadingStory): |
| 178 NAME = 'load:news:washingtonpost' | 178 NAME = 'load:news:washingtonpost' |
| 179 URL = 'https://www.washingtonpost.com/pwa' | 179 URL = 'https://www.washingtonpost.com/pwa' |
| 180 SUPPORTED_PLATFORMS = platforms.NO_PLATFORMS # http://crbug.com/634112 | 180 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY |
| 181 _CLOSE_BUTTON_SELECTOR = '.close' | 181 _CLOSE_BUTTON_SELECTOR = '.close' |
| 182 | 182 |
| 183 def _DidLoadDocument(self, action_runner): | 183 def _DidLoadDocument(self, action_runner): |
| 184 # Close the popup window. On Nexus 9 (and probably other tables) the popup | 184 # Close the popup window. On Nexus 9 (and probably other tables) the popup |
| 185 # window does not have a "Close" button, instead it has only a "Send link | 185 # window does not have a "Close" button, instead it has only a "Send link |
| 186 # to phone" button. So on tablets we run with the popup window open. The | 186 # to phone" button. So on tablets we run with the popup window open. The |
| 187 # popup is transparent, so this is mostly an aesthetical issue. | 187 # popup is transparent, so this is mostly an aesthetical issue. |
| 188 has_button = action_runner.EvaluateJavaScript( | 188 has_button = action_runner.EvaluateJavaScript( |
| 189 '!!document.querySelector("%s")' % self._CLOSE_BUTTON_SELECTOR) | 189 '!!document.querySelector("%s")' % self._CLOSE_BUTTON_SELECTOR) |
| 190 if has_button: | 190 if has_button: |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 URL = 'http://www.miniclip.com/games/en/' | 391 URL = 'http://www.miniclip.com/games/en/' |
| 392 # Desktop only (requires Flash). | 392 # Desktop only (requires Flash). |
| 393 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY | 393 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY |
| 394 | 394 |
| 395 | 395 |
| 396 class LoadAlphabettyStory(_LoadingStory): | 396 class LoadAlphabettyStory(_LoadingStory): |
| 397 NAME = 'load:games:alphabetty' | 397 NAME = 'load:games:alphabetty' |
| 398 URL = 'https://king.com/play/alphabetty' | 398 URL = 'https://king.com/play/alphabetty' |
| 399 # Desktop only (requires Flash). | 399 # Desktop only (requires Flash). |
| 400 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY | 400 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY |
| OLD | NEW |