| 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.login_helpers import google_login | 5 from page_sets.login_helpers import google_login |
| 6 from page_sets.system_health import platforms | 6 from page_sets.system_health import platforms |
| 7 from page_sets.system_health import system_health_story | 7 from page_sets.system_health import system_health_story |
| 8 | 8 |
| 9 from telemetry import decorators | 9 from telemetry import decorators |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 class _LongRunningGmailDesktopBase(_LongRunningGmailBase): | 77 class _LongRunningGmailDesktopBase(_LongRunningGmailBase): |
| 78 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY | 78 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY |
| 79 | 79 |
| 80 def _DidLoadDocument(self, action_runner): | 80 def _DidLoadDocument(self, action_runner): |
| 81 # Wait until the UI loads. | 81 # Wait until the UI loads. |
| 82 action_runner.WaitForJavaScriptCondition( | 82 action_runner.WaitForJavaScriptCondition( |
| 83 'document.getElementById("loading").style.display === "none"') | 83 'document.getElementById("loading").style.display === "none"') |
| 84 | 84 |
| 85 | 85 |
| 86 @decorators.Disabled('android') # crbug.com.com/664505 | 86 @decorators.Disabled('android') # crbug.com/657433 |
| 87 class LongRunningGmailMobileForegroundStory(_LongRunningGmailMobileBase): | 87 class LongRunningGmailMobileForegroundStory(_LongRunningGmailMobileBase): |
| 88 NAME = 'long_running:tools:gmail-foreground' | 88 NAME = 'long_running:tools:gmail-foreground' |
| 89 | 89 |
| 90 | 90 |
| 91 class LongRunningGmailDesktopForegroundStory(_LongRunningGmailDesktopBase): | 91 class LongRunningGmailDesktopForegroundStory(_LongRunningGmailDesktopBase): |
| 92 NAME = 'long_running:tools:gmail-foreground' | 92 NAME = 'long_running:tools:gmail-foreground' |
| 93 | 93 |
| 94 | 94 |
| 95 @decorators.Disabled('android-webview' # Weview does not have tabs. | 95 @decorators.Disabled('android-webview', # Weview does not have tabs. |
| 96 , 'android') # crbug.com/664505 | 96 'android') # crbug.com/657433 |
| 97 class LongRunningGmailMobileBackgroundStory(_LongRunningGmailMobileBase): | 97 class LongRunningGmailMobileBackgroundStory(_LongRunningGmailMobileBase): |
| 98 BACKGROUND = True | 98 BACKGROUND = True |
| 99 NAME = 'long_running:tools:gmail-background' | 99 NAME = 'long_running:tools:gmail-background' |
| 100 | 100 |
| 101 | 101 |
| 102 class LongRunningGmailDesktopBackgroundStory(_LongRunningGmailDesktopBase): | 102 class LongRunningGmailDesktopBackgroundStory(_LongRunningGmailDesktopBase): |
| 103 BACKGROUND = True | 103 BACKGROUND = True |
| 104 NAME = 'long_running:tools:gmail-background' | 104 NAME = 'long_running:tools:gmail-background' |
| OLD | NEW |