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

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

Issue 2575513002: Actually disable load:tools:gmail (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 | « 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.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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 # Online tools (documents, emails, storage, ...). 272 # Online tools (documents, emails, storage, ...).
273 ################################################################################ 273 ################################################################################
274 274
275 275
276 class LoadDocsStory(_LoadingStory): 276 class LoadDocsStory(_LoadingStory):
277 NAME = 'load:tools:docs' 277 NAME = 'load:tools:docs'
278 URL = ( 278 URL = (
279 'https://docs.google.com/document/d/1GvzDP-tTLmJ0myRhUAfTYWs3ZUFilUICg8psN HyccwQ/edit?usp=sharing') 279 'https://docs.google.com/document/d/1GvzDP-tTLmJ0myRhUAfTYWs3ZUFilUICg8psN HyccwQ/edit?usp=sharing')
280 280
281 281
282 @decorators.Disabled('android') # crbug.com.com/664505
283 class _LoadGmailBaseStory(_LoadingStory): 282 class _LoadGmailBaseStory(_LoadingStory):
284 NAME = 'load:tools:gmail' 283 NAME = 'load:tools:gmail'
285 URL = 'https://mail.google.com/mail/' 284 URL = 'https://mail.google.com/mail/'
286 ABSTRACT_STORY = True 285 ABSTRACT_STORY = True
287 286
288 def _Login(self, action_runner): 287 def _Login(self, action_runner):
289 google_login.LoginGoogleAccount(action_runner, 'googletest', 288 google_login.LoginGoogleAccount(action_runner, 'googletest',
290 self.credentials_path) 289 self.credentials_path)
291 290
292 # Navigating to https://mail.google.com immediately leads to an infinite 291 # Navigating to https://mail.google.com immediately leads to an infinite
293 # redirection loop due to a bug in WPR (see 292 # redirection loop due to a bug in WPR (see
294 # https://github.com/chromium/web-page-replay/issues/70). We therefore first 293 # https://github.com/chromium/web-page-replay/issues/70). We therefore first
295 # navigate to a sub-URL to set up the session and hit the resulting 294 # navigate to a sub-URL to set up the session and hit the resulting
296 # redirection loop. Afterwards, we can safely navigate to 295 # redirection loop. Afterwards, we can safely navigate to
297 # https://mail.google.com. 296 # https://mail.google.com.
298 action_runner.tab.WaitForDocumentReadyStateToBeComplete() 297 action_runner.tab.WaitForDocumentReadyStateToBeComplete()
299 action_runner.Navigate( 298 action_runner.Navigate(
300 'https://mail.google.com/mail/mu/mp/872/trigger_redirection_loop') 299 'https://mail.google.com/mail/mu/mp/872/trigger_redirection_loop')
301 action_runner.tab.WaitForDocumentReadyStateToBeComplete() 300 action_runner.tab.WaitForDocumentReadyStateToBeComplete()
302 301
303 302
304 class LoadGmailDesktopStory(_LoadGmailBaseStory): 303 class LoadGmailDesktopStory(_LoadGmailBaseStory):
305 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY 304 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY
306 305
307 def _DidLoadDocument(self, action_runner): 306 def _DidLoadDocument(self, action_runner):
308 # Wait until the UI loads. 307 # Wait until the UI loads.
309 action_runner.WaitForJavaScriptCondition( 308 action_runner.WaitForJavaScriptCondition(
310 'document.getElementById("loading").style.display === "none"') 309 'document.getElementById("loading").style.display === "none"')
311 310
311
312 @decorators.Disabled('android') # crbug.com.com/664505
312 class LoadGmailMobileStory(_LoadGmailBaseStory): 313 class LoadGmailMobileStory(_LoadGmailBaseStory):
313 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY 314 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
314 315
315 def _DidLoadDocument(self, action_runner): 316 def _DidLoadDocument(self, action_runner):
316 # Wait until the UI loads. 317 # Wait until the UI loads.
317 action_runner.WaitForElement('#apploadingdiv') 318 action_runner.WaitForElement('#apploadingdiv')
318 action_runner.WaitForJavaScriptCondition( 319 action_runner.WaitForJavaScriptCondition(
319 'document.getElementById("apploadingdiv").style.height === "0px"') 320 'document.getElementById("apploadingdiv").style.height === "0px"')
320 321
321 class LoadMapsStory(_LoadingStory): 322 class LoadMapsStory(_LoadingStory):
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 NAME = 'load:games:miniclip' 391 NAME = 'load:games:miniclip'
391 # Using "https://" causes "404 Not Found" during WPR recording. 392 # Using "https://" causes "404 Not Found" during WPR recording.
392 URL = 'http://www.miniclip.com/games/en/' 393 URL = 'http://www.miniclip.com/games/en/'
393 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY # Requires Flash. 394 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY # Requires Flash.
394 395
395 396
396 class LoadAlphabettyStory(_LoadingStory): 397 class LoadAlphabettyStory(_LoadingStory):
397 NAME = 'load:games:alphabetty' 398 NAME = 'load:games:alphabetty'
398 URL = 'https://king.com/play/alphabetty' 399 URL = 'https://king.com/play/alphabetty'
399 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY # Requires Flash. 400 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY # Requires Flash.
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