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 2240493002: [system-health] Re-enable {load, browse}:news:washingtonpost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months 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 | tools/perf/page_sets/system_health/loading_stories.py » ('j') | 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 8
9 class _BrowsingStory(system_health_story.SystemHealthStory): 9 class _BrowsingStory(system_health_story.SystemHealthStory):
10 """Abstract base class for browsing stories. 10 """Abstract base class for browsing stories.
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 ITEM_SELECTOR = '.tweet-text' 192 ITEM_SELECTOR = '.tweet-text'
193 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY 193 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY
194 194
195 195
196 class WashingtonPostMobileStory(_NewsBrowsingStory): 196 class WashingtonPostMobileStory(_NewsBrowsingStory):
197 """Progressive website""" 197 """Progressive website"""
198 NAME = 'browse:news:washingtonpost' 198 NAME = 'browse:news:washingtonpost'
199 URL = 'https://www.washingtonpost.com/pwa' 199 URL = 'https://www.washingtonpost.com/pwa'
200 IS_SINGLE_PAGE_APP = True 200 IS_SINGLE_PAGE_APP = True
201 ITEM_SELECTOR = '.hed > a' 201 ITEM_SELECTOR = '.hed > a'
202 SUPPORTED_PLATFORMS = platforms.NO_PLATFORMS # http://crbug.com/634112 202 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
203 _CLOSE_BUTTON_SELECTOR = '.close' 203 _CLOSE_BUTTON_SELECTOR = '.close'
204 204
205 def _DidLoadDocument(self, action_runner): 205 def _DidLoadDocument(self, action_runner):
206 # Close the popup window. On Nexus 9 (and probably other tables) the popup 206 # Close the popup window. On Nexus 9 (and probably other tables) the popup
207 # window does not have a "Close" button, instead it has only a "Send link 207 # window does not have a "Close" button, instead it has only a "Send link
208 # to phone" button. So on tablets we run with the popup window open. The 208 # to phone" button. So on tablets we run with the popup window open. The
209 # popup is transparent, so this is mostly an aesthetical issue. 209 # popup is transparent, so this is mostly an aesthetical issue.
210 has_button = action_runner.EvaluateJavaScript( 210 has_button = action_runner.EvaluateJavaScript(
211 '!!document.querySelector("%s")' % self._CLOSE_BUTTON_SELECTOR) 211 '!!document.querySelector("%s")' % self._CLOSE_BUTTON_SELECTOR)
212 if has_button: 212 if has_button:
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 292
293 class FacebookPhotosDesktopStory(_MediaBrowsingStory): 293 class FacebookPhotosDesktopStory(_MediaBrowsingStory):
294 NAME = 'browse:media:facebook_photos' 294 NAME = 'browse:media:facebook_photos'
295 URL = ( 295 URL = (
296 'https://www.facebook.com/rihanna/photos/a.207477806675.138795.10092511675 /10153911739606676/?type=3&theater') 296 'https://www.facebook.com/rihanna/photos/a.207477806675.138795.10092511675 /10153911739606676/?type=3&theater')
297 ITEM_SELECTOR = '.snowliftPager.next' 297 ITEM_SELECTOR = '.snowliftPager.next'
298 # Recording currently does not work. The page gets stuck in the 298 # Recording currently does not work. The page gets stuck in the
299 # theater viewer. 299 # theater viewer.
300 SUPPORTED_PLATFORMS = platforms.NO_PLATFORMS 300 SUPPORTED_PLATFORMS = platforms.NO_PLATFORMS
301 IS_SINGLE_PAGE_APP = True 301 IS_SINGLE_PAGE_APP = True
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/system_health/loading_stories.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698