Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(639)

Side by Side Diff: tools/perf/page_sets/system_health/long_running_stories.py

Issue 2552993003: [System Health][Android] Disable failing gmail tests. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/perf/page_sets/system_health/loading_stories.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 benchmark 9 from telemetry import decorators
10 10
11 11
12 IDLE_TIME_IN_SECONDS = 100 12 IDLE_TIME_IN_SECONDS = 100
13 SAMPLING_INTERVAL_IN_SECONDS = 1 13 SAMPLING_INTERVAL_IN_SECONDS = 1
14 STEPS = IDLE_TIME_IN_SECONDS / SAMPLING_INTERVAL_IN_SECONDS 14 STEPS = IDLE_TIME_IN_SECONDS / SAMPLING_INTERVAL_IN_SECONDS
15 15
16 16
17 class _LongRunningStory(system_health_story.SystemHealthStory): 17 class _LongRunningStory(system_health_story.SystemHealthStory):
18 """Abstract base class for long running stories.""" 18 """Abstract base class for long running stories."""
19 ABSTRACT_STORY = True 19 ABSTRACT_STORY = True
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 class LongRunningGmailMobileForegroundStory(_LongRunningGmailMobileBase): 87 class LongRunningGmailMobileForegroundStory(_LongRunningGmailMobileBase):
87 NAME = 'long_running:tools:gmail-foreground' 88 NAME = 'long_running:tools:gmail-foreground'
88 89
89 90
90 class LongRunningGmailDesktopForegroundStory(_LongRunningGmailDesktopBase): 91 class LongRunningGmailDesktopForegroundStory(_LongRunningGmailDesktopBase):
91 NAME = 'long_running:tools:gmail-foreground' 92 NAME = 'long_running:tools:gmail-foreground'
92 93
93 94
94 @benchmark.Disabled('android-webview') # Webview does not have tabs. 95 @decorators.Disabled('android-webview' # Weview does not have tabs.
96 , 'android') # crbug.com/664505
95 class LongRunningGmailMobileBackgroundStory(_LongRunningGmailMobileBase): 97 class LongRunningGmailMobileBackgroundStory(_LongRunningGmailMobileBase):
96 BACKGROUND = True 98 BACKGROUND = True
97 NAME = 'long_running:tools:gmail-background' 99 NAME = 'long_running:tools:gmail-background'
98 100
99 101
100 class LongRunningGmailDesktopBackgroundStory(_LongRunningGmailDesktopBase): 102 class LongRunningGmailDesktopBackgroundStory(_LongRunningGmailDesktopBase):
101 BACKGROUND = True 103 BACKGROUND = True
102 NAME = 'long_running:tools:gmail-background' 104 NAME = 'long_running:tools:gmail-background'
OLDNEW
« no previous file with comments | « tools/perf/page_sets/system_health/loading_stories.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698