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

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

Issue 2373293003: Disable long-running gmail stories on svelte (Closed)
Patch Set: address review comments Created 4 years, 2 months 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 | « no previous file | 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 benchmark
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 # navigate to a sub-URL to set up the session and hit the resulting 51 # navigate to a sub-URL to set up the session and hit the resulting
52 # redirection loop. Afterwards, we can safely navigate to 52 # redirection loop. Afterwards, we can safely navigate to
53 # https://mail.google.com. 53 # https://mail.google.com.
54 action_runner.Navigate( 54 action_runner.Navigate(
55 'https://mail.google.com/mail/mu/mp/872/trigger_redirection_loop') 55 'https://mail.google.com/mail/mu/mp/872/trigger_redirection_loop')
56 action_runner.tab.WaitForDocumentReadyStateToBeComplete() 56 action_runner.tab.WaitForDocumentReadyStateToBeComplete()
57 57
58 class _LongRunningGmailMobileBase(_LongRunningGmailBase): 58 class _LongRunningGmailMobileBase(_LongRunningGmailBase):
59 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY 59 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
60 60
61 @classmethod
62 def ShouldDisable(cls, possible_browser):
63 # crbug.com/651198
64 return possible_browser.platform.IsSvelte()
65
61 def _DidLoadDocument(self, action_runner): 66 def _DidLoadDocument(self, action_runner):
62 # Close the "Get Inbox by Gmail" interstitial. 67 # Close the "Get Inbox by Gmail" interstitial.
63 action_runner.WaitForJavaScriptCondition( 68 action_runner.WaitForJavaScriptCondition(
64 'document.querySelector("#isppromo a") !== null') 69 'document.querySelector("#isppromo a") !== null')
65 action_runner.ExecuteJavaScript( 70 action_runner.ExecuteJavaScript(
66 'document.querySelector("#isppromo a").click()') 71 'document.querySelector("#isppromo a").click()')
67 # Wait until the UI loads. 72 # Wait until the UI loads.
68 action_runner.WaitForJavaScriptCondition( 73 action_runner.WaitForJavaScriptCondition(
69 'document.getElementById("apploadingdiv").style.height === "0px"') 74 'document.getElementById("apploadingdiv").style.height === "0px"')
70 75
(...skipping 17 matching lines...) Expand all
88 93
89 @benchmark.Disabled('android-webview') # Webview does not have tabs. 94 @benchmark.Disabled('android-webview') # Webview does not have tabs.
90 class LongRunningGmailMobileBackgroundStory(_LongRunningGmailMobileBase): 95 class LongRunningGmailMobileBackgroundStory(_LongRunningGmailMobileBase):
91 BACKGROUND = True 96 BACKGROUND = True
92 NAME = 'long_running:tools:gmail-background' 97 NAME = 'long_running:tools:gmail-background'
93 98
94 99
95 class LongRunningGmailDesktopBackgroundStory(_LongRunningGmailDesktopBase): 100 class LongRunningGmailDesktopBackgroundStory(_LongRunningGmailDesktopBase):
96 BACKGROUND = True 101 BACKGROUND = True
97 NAME = 'long_running:tools:gmail-background' 102 NAME = 'long_running:tools:gmail-background'
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698