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

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

Issue 2489423004: [System Health] Disable stories failing on Android (Closed)
Patch Set: Created 4 years, 1 month 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 | tools/perf/page_sets/system_health/browsing_stories.py » ('j') | 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 from page_sets.system_health.loading_stories import LoadGmailMobileStory 7 from page_sets.system_health.loading_stories import LoadGmailMobileStory
8 8
9 from telemetry import decorators
10
11
9 _WAIT_FOR_VIDEO_SECONDS = 5 12 _WAIT_FOR_VIDEO_SECONDS = 5
10 13
11 class _BackgroundStory(system_health_story.SystemHealthStory): 14 class _BackgroundStory(system_health_story.SystemHealthStory):
12 """Abstract base class for background stories 15 """Abstract base class for background stories
13 16
14 As in _LoadingStory except it puts the browser into the 17 As in _LoadingStory except it puts the browser into the
15 background before measuring. 18 background before measuring.
16 """ 19 """
17 ABSTRACT_STORY = True 20 ABSTRACT_STORY = True
18 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY 21 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
(...skipping 13 matching lines...) Expand all
32 action_runner.ScrollPageToElement(selector='g-fab') 35 action_runner.ScrollPageToElement(selector='g-fab')
33 action_runner.TapElement(selector='g-fab') 36 action_runner.TapElement(selector='g-fab')
34 37
35 38
36 class BackgroundFacebookMobileStory(_BackgroundStory): 39 class BackgroundFacebookMobileStory(_BackgroundStory):
37 NAME = 'background:social:facebook' 40 NAME = 'background:social:facebook'
38 URL = 'https://www.facebook.com/rihanna' 41 URL = 'https://www.facebook.com/rihanna'
39 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY 42 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
40 43
41 44
45 @decorators.Disabled('android') # crbug.com/664521
42 class BackgroundNytimesMobileStory(_BackgroundStory): 46 class BackgroundNytimesMobileStory(_BackgroundStory):
43 """The third top website in http://www.alexa.com/topsites/category/News""" 47 """The third top website in http://www.alexa.com/topsites/category/News"""
44 NAME = 'background:news:nytimes' 48 NAME = 'background:news:nytimes'
45 URL = 'http://www.nytimes.com/2016/10/04/us/politics/vice-presidential-debate. html?_r=0' 49 URL = 'http://www.nytimes.com/2016/10/04/us/politics/vice-presidential-debate. html?_r=0'
46 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY 50 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
47 51
48 def _DidLoadDocument(self, action_runner): 52 def _DidLoadDocument(self, action_runner):
49 # Dismiss the 'You have n free articles' message. 53 # Dismiss the 'You have n free articles' message.
50 action_runner.WaitForElement(selector='.growl-dismiss') 54 action_runner.WaitForElement(selector='.growl-dismiss')
51 action_runner.TapElement(selector='.growl-dismiss') 55 action_runner.TapElement(selector='.growl-dismiss')
(...skipping 18 matching lines...) Expand all
70 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY 74 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
71 75
72 76
73 class BackgroundGmailMobileStory(LoadGmailMobileStory): 77 class BackgroundGmailMobileStory(LoadGmailMobileStory):
74 NAME = 'background:tools:gmail' 78 NAME = 'background:tools:gmail'
75 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY 79 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
76 80
77 def _Measure(self, action_runner): 81 def _Measure(self, action_runner):
78 action_runner.tab.browser.Background() 82 action_runner.tab.browser.Background()
79 super(BackgroundGmailMobileStory, self)._Measure(action_runner) 83 super(BackgroundGmailMobileStory, self)._Measure(action_runner)
80
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/system_health/browsing_stories.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698