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

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

Issue 2481893002: perf: Disable browse:social:twitter on Windows (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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY 183 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
184 184
185 185
186 class TwitterMobileStory(_NewsBrowsingStory): 186 class TwitterMobileStory(_NewsBrowsingStory):
187 NAME = 'browse:social:twitter' 187 NAME = 'browse:social:twitter'
188 URL = 'https://www.twitter.com/nasa' 188 URL = 'https://www.twitter.com/nasa'
189 ITEM_SELECTOR = '.Tweet-text' 189 ITEM_SELECTOR = '.Tweet-text'
190 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY 190 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
191 191
192 192
193 @decorators.Disabled('win') # crbug.com/662971
193 class TwitterDesktopStory(_NewsBrowsingStory): 194 class TwitterDesktopStory(_NewsBrowsingStory):
194 NAME = 'browse:social:twitter' 195 NAME = 'browse:social:twitter'
195 URL = 'https://www.twitter.com/nasa' 196 URL = 'https://www.twitter.com/nasa'
196 IS_SINGLE_PAGE_APP = True 197 IS_SINGLE_PAGE_APP = True
197 ITEM_SELECTOR = '.tweet-text' 198 ITEM_SELECTOR = '.tweet-text'
198 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY 199 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY
199 200
200 201
201 class WashingtonPostMobileStory(_NewsBrowsingStory): 202 class WashingtonPostMobileStory(_NewsBrowsingStory):
202 """Progressive website""" 203 """Progressive website"""
(...skipping 154 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