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

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

Issue 2484783002: perf: Disable browse:news:reddit on Mac (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 | 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 # Desktop qq.com opens a news item in a separate tab, for which the back button 160 # Desktop qq.com opens a news item in a separate tab, for which the back button
161 # does not work. 161 # does not work.
162 class QqMobileStory(_NewsBrowsingStory): 162 class QqMobileStory(_NewsBrowsingStory):
163 NAME = 'browse:news:qq' 163 NAME = 'browse:news:qq'
164 URL = 'http://news.qq.com' 164 URL = 'http://news.qq.com'
165 ITEM_SELECTOR = '.list .full a' 165 ITEM_SELECTOR = '.list .full a'
166 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY 166 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
167 167
168 168
169 @decorators.Disabled('mac') # crbug.com/662959
169 class RedditDesktopStory(_NewsBrowsingStory): 170 class RedditDesktopStory(_NewsBrowsingStory):
170 """The top website in http://www.alexa.com/topsites/category/News""" 171 """The top website in http://www.alexa.com/topsites/category/News"""
171 NAME = 'browse:news:reddit' 172 NAME = 'browse:news:reddit'
172 URL = 'https://www.reddit.com/r/news/top/?sort=top&t=week' 173 URL = 'https://www.reddit.com/r/news/top/?sort=top&t=week'
173 ITEM_SELECTOR = '.thing .title > a' 174 ITEM_SELECTOR = '.thing .title > a'
174 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY 175 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY
175 176
176 177
177 class RedditMobileStory(_NewsBrowsingStory): 178 class RedditMobileStory(_NewsBrowsingStory):
178 """The top website in http://www.alexa.com/topsites/category/News""" 179 """The top website in http://www.alexa.com/topsites/category/News"""
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 inner_save_function = 'document.querySelector(".nameAndIcons")' 358 inner_save_function = 'document.querySelector(".nameAndIcons")'
358 action_runner.WaitForElement(element_function=inner_save_function) 359 action_runner.WaitForElement(element_function=inner_save_function)
359 action_runner.ClickElement(element_function=inner_save_function) 360 action_runner.ClickElement(element_function=inner_save_function)
360 action_runner.Wait(1) # Wait to make navigation realistic. 361 action_runner.Wait(1) # Wait to make navigation realistic.
361 362
362 # Close selection. 363 # Close selection.
363 x_element_function = ('document.querySelector(' 364 x_element_function = ('document.querySelector('
364 '".Button.borderless.close.visible")') 365 '".Button.borderless.close.visible")')
365 action_runner.ClickElement(element_function=x_element_function) 366 action_runner.ClickElement(element_function=x_element_function)
366 action_runner.Wait(1) # Wait to make navigation realistic. 367 action_runner.Wait(1) # Wait to make navigation realistic.
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