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

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

Issue 2565393002: Revert of perf: Disable browse:news:reddit on Mac (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 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
170 class RedditDesktopStory(_NewsBrowsingStory): 169 class RedditDesktopStory(_NewsBrowsingStory):
171 """The top website in http://www.alexa.com/topsites/category/News""" 170 """The top website in http://www.alexa.com/topsites/category/News"""
172 NAME = 'browse:news:reddit' 171 NAME = 'browse:news:reddit'
173 URL = 'https://www.reddit.com/r/news/top/?sort=top&t=week' 172 URL = 'https://www.reddit.com/r/news/top/?sort=top&t=week'
174 ITEM_SELECTOR = '.thing .title > a' 173 ITEM_SELECTOR = '.thing .title > a'
175 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY 174 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY
176 175
177 176
178 class RedditMobileStory(_NewsBrowsingStory): 177 class RedditMobileStory(_NewsBrowsingStory):
179 """The top website in http://www.alexa.com/topsites/category/News""" 178 """The top website in http://www.alexa.com/topsites/category/News"""
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 inner_save_function = 'document.querySelector(".nameAndIcons")' 357 inner_save_function = 'document.querySelector(".nameAndIcons")'
359 action_runner.WaitForElement(element_function=inner_save_function) 358 action_runner.WaitForElement(element_function=inner_save_function)
360 action_runner.ClickElement(element_function=inner_save_function) 359 action_runner.ClickElement(element_function=inner_save_function)
361 action_runner.Wait(1) # Wait to make navigation realistic. 360 action_runner.Wait(1) # Wait to make navigation realistic.
362 361
363 # Close selection. 362 # Close selection.
364 x_element_function = ('document.querySelector(' 363 x_element_function = ('document.querySelector('
365 '".Button.borderless.close.visible")') 364 '".Button.borderless.close.visible")')
366 action_runner.ClickElement(element_function=x_element_function) 365 action_runner.ClickElement(element_function=x_element_function)
367 action_runner.Wait(1) # Wait to make navigation realistic. 366 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