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

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

Issue 2531993002: Disable browse:news:hackernews on Mac 10.10 and 10.11. (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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 @decorators.Disabled('mac') # crbug.com/663025 135 @decorators.Disabled('mac') # crbug.com/663025
136 class FlipboardDesktopStory(_NewsBrowsingStory): 136 class FlipboardDesktopStory(_NewsBrowsingStory):
137 NAME = 'browse:news:flipboard' 137 NAME = 'browse:news:flipboard'
138 URL = 'https://flipboard.com/explore' 138 URL = 'https://flipboard.com/explore'
139 IS_SINGLE_PAGE_APP = True 139 IS_SINGLE_PAGE_APP = True
140 ITEM_SELECTOR = '.cover-image' 140 ITEM_SELECTOR = '.cover-image'
141 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY 141 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY
142 142
143 143
144 # crbug.com/657665 for win, crbug.com/665007 for linux 144 # crbug.com/657665 for win and mac, crbug.com/665007 for linux
145 @decorators.Disabled('win', 'linux') 145 @decorators.Disabled('win', 'linux', 'yosemite', 'elcapitan')
146 class HackerNewsStory(_NewsBrowsingStory): 146 class HackerNewsStory(_NewsBrowsingStory):
147 NAME = 'browse:news:hackernews' 147 NAME = 'browse:news:hackernews'
148 URL = 'https://news.ycombinator.com' 148 URL = 'https://news.ycombinator.com'
149 ITEM_SELECTOR = '.athing .title > a' 149 ITEM_SELECTOR = '.athing .title > a'
150 150
151 151
152 class NytimesMobileStory(_NewsBrowsingStory): 152 class NytimesMobileStory(_NewsBrowsingStory):
153 """The third top website in http://www.alexa.com/topsites/category/News""" 153 """The third top website in http://www.alexa.com/topsites/category/News"""
154 NAME = 'browse:news:nytimes' 154 NAME = 'browse:news:nytimes'
155 URL = 'http://mobile.nytimes.com' 155 URL = 'http://mobile.nytimes.com'
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 inner_save_function = 'document.querySelector(".nameAndIcons")' 370 inner_save_function = 'document.querySelector(".nameAndIcons")'
371 action_runner.WaitForElement(element_function=inner_save_function) 371 action_runner.WaitForElement(element_function=inner_save_function)
372 action_runner.ClickElement(element_function=inner_save_function) 372 action_runner.ClickElement(element_function=inner_save_function)
373 action_runner.Wait(1) # Wait to make navigation realistic. 373 action_runner.Wait(1) # Wait to make navigation realistic.
374 374
375 # Close selection. 375 # Close selection.
376 x_element_function = ('document.querySelector(' 376 x_element_function = ('document.querySelector('
377 '".Button.borderless.close.visible")') 377 '".Button.borderless.close.visible")')
378 action_runner.ClickElement(element_function=x_element_function) 378 action_runner.ClickElement(element_function=x_element_function)
379 action_runner.Wait(1) # Wait to make navigation realistic. 379 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