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

Side by Side Diff: tools/perf/page_sets/system_health/browsing_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 | « tools/perf/page_sets/system_health/background_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.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 pinterest_login 8 from page_sets.login_helpers import pinterest_login
9 9
10 from telemetry import decorators 10 from telemetry import decorators
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 # crash with OOM. 89 # crash with OOM.
90 @decorators.Disabled('android') 90 @decorators.Disabled('android')
91 class CnnStory(_NewsBrowsingStory): 91 class CnnStory(_NewsBrowsingStory):
92 """The second top website in http://www.alexa.com/topsites/category/News""" 92 """The second top website in http://www.alexa.com/topsites/category/News"""
93 NAME = 'browse:news:cnn' 93 NAME = 'browse:news:cnn'
94 URL = 'http://edition.cnn.com/' 94 URL = 'http://edition.cnn.com/'
95 ITEM_SELECTOR = '.cd__content > h3 > a' 95 ITEM_SELECTOR = '.cd__content > h3 > a'
96 ITEMS_TO_VISIT = 2 96 ITEMS_TO_VISIT = 2
97 97
98 98
99 @decorators.Disabled('android') # crbug.com/664518
99 class FacebookMobileStory(_NewsBrowsingStory): 100 class FacebookMobileStory(_NewsBrowsingStory):
100 NAME = 'browse:social:facebook' 101 NAME = 'browse:social:facebook'
101 URL = 'https://www.facebook.com/rihanna' 102 URL = 'https://www.facebook.com/rihanna'
102 ITEM_SELECTOR = 'article ._5msj' 103 ITEM_SELECTOR = 'article ._5msj'
103 # We scroll further than usual so that Facebook fetches enough items 104 # We scroll further than usual so that Facebook fetches enough items
104 # (crbug.com/631022) 105 # (crbug.com/631022)
105 MAIN_PAGE_SCROLL_REPEAT = 1 106 MAIN_PAGE_SCROLL_REPEAT = 1
106 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY 107 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
107 108
108 109
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 178
178 class RedditMobileStory(_NewsBrowsingStory): 179 class RedditMobileStory(_NewsBrowsingStory):
179 """The top website in http://www.alexa.com/topsites/category/News""" 180 """The top website in http://www.alexa.com/topsites/category/News"""
180 NAME = 'browse:news:reddit' 181 NAME = 'browse:news:reddit'
181 URL = 'https://www.reddit.com/r/news/top/?sort=top&t=week' 182 URL = 'https://www.reddit.com/r/news/top/?sort=top&t=week'
182 IS_SINGLE_PAGE_APP = True 183 IS_SINGLE_PAGE_APP = True
183 ITEM_SELECTOR = '.PostHeader__post-title-line' 184 ITEM_SELECTOR = '.PostHeader__post-title-line'
184 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY 185 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
185 186
186 187
188 @decorators.Disabled('android') # crbug.com/664515
187 class TwitterMobileStory(_NewsBrowsingStory): 189 class TwitterMobileStory(_NewsBrowsingStory):
188 NAME = 'browse:social:twitter' 190 NAME = 'browse:social:twitter'
189 URL = 'https://www.twitter.com/nasa' 191 URL = 'https://www.twitter.com/nasa'
190 ITEM_SELECTOR = '.Tweet-text' 192 ITEM_SELECTOR = '.Tweet-text'
191 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY 193 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
192 194
193 195
194 @decorators.Disabled('win') # crbug.com/662971 196 @decorators.Disabled('win') # crbug.com/662971
195 class TwitterDesktopStory(_NewsBrowsingStory): 197 class TwitterDesktopStory(_NewsBrowsingStory):
196 NAME = 'browse:social:twitter' 198 NAME = 'browse:social:twitter'
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 if self.INCREMENT_INDEX_AFTER_EACH_ITEM: 251 if self.INCREMENT_INDEX_AFTER_EACH_ITEM:
250 index += 1 252 index += 1
251 253
252 254
253 def _ViewMediaItem(self, action_runner, index): 255 def _ViewMediaItem(self, action_runner, index):
254 del index # Unused. 256 del index # Unused.
255 action_runner.tab.WaitForDocumentReadyStateToBeComplete() 257 action_runner.tab.WaitForDocumentReadyStateToBeComplete()
256 action_runner.Wait(self.ITEM_VIEW_TIME_IN_SECONDS) 258 action_runner.Wait(self.ITEM_VIEW_TIME_IN_SECONDS)
257 259
258 260
261 @decorators.Disabled('android') # crbug.com/664518
259 class ImgurMobileStory(_MediaBrowsingStory): 262 class ImgurMobileStory(_MediaBrowsingStory):
260 NAME = 'browse:media:imgur' 263 NAME = 'browse:media:imgur'
261 URL = 'http://imgur.com/gallery/5UlBN' 264 URL = 'http://imgur.com/gallery/5UlBN'
262 ITEM_SELECTOR = '.Navbar-customAction' 265 ITEM_SELECTOR = '.Navbar-customAction'
263 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY 266 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
264 IS_SINGLE_PAGE_APP = True 267 IS_SINGLE_PAGE_APP = True
265 268
266 269
267 class ImgurDesktopStory(_MediaBrowsingStory): 270 class ImgurDesktopStory(_MediaBrowsingStory):
268 NAME = 'browse:media:imgur' 271 NAME = 'browse:media:imgur'
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 inner_save_function = 'document.querySelector(".nameAndIcons")' 362 inner_save_function = 'document.querySelector(".nameAndIcons")'
360 action_runner.WaitForElement(element_function=inner_save_function) 363 action_runner.WaitForElement(element_function=inner_save_function)
361 action_runner.ClickElement(element_function=inner_save_function) 364 action_runner.ClickElement(element_function=inner_save_function)
362 action_runner.Wait(1) # Wait to make navigation realistic. 365 action_runner.Wait(1) # Wait to make navigation realistic.
363 366
364 # Close selection. 367 # Close selection.
365 x_element_function = ('document.querySelector(' 368 x_element_function = ('document.querySelector('
366 '".Button.borderless.close.visible")') 369 '".Button.borderless.close.visible")')
367 action_runner.ClickElement(element_function=x_element_function) 370 action_runner.ClickElement(element_function=x_element_function)
368 action_runner.Wait(1) # Wait to make navigation realistic. 371 action_runner.Wait(1) # Wait to make navigation realistic.
OLDNEW
« no previous file with comments | « tools/perf/page_sets/system_health/background_stories.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698