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

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

Issue 2235803002: [system-health] Rename browse:media:facebook to browse:media:facebook_photos (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
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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 URL = 'https://www.youtube.com/watch?v=QGfhS1hfTWw&autoplay=false' 273 URL = 'https://www.youtube.com/watch?v=QGfhS1hfTWw&autoplay=false'
274 ITEM_SELECTOR = '.yt-uix-simple-thumb-related' 274 ITEM_SELECTOR = '.yt-uix-simple-thumb-related'
275 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY 275 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY
276 IS_SINGLE_PAGE_APP = True 276 IS_SINGLE_PAGE_APP = True
277 # A longer view time allows videos to load and play. 277 # A longer view time allows videos to load and play.
278 ITEM_VIEW_TIME_IN_SECONDS = 5 278 ITEM_VIEW_TIME_IN_SECONDS = 5
279 ITEMS_TO_VISIT = 8 279 ITEMS_TO_VISIT = 8
280 ITEM_SELECTOR_INDEX = 3 280 ITEM_SELECTOR_INDEX = 3
281 281
282 282
283 class FacebookMobileStory(_MediaBrowsingStory): 283 class FacebookPhotosMediaStory(_MediaBrowsingStory):
284 NAME = 'browse:media:facebook' 284 NAME = 'browse:media:facebook_photos'
285 URL = ( 285 URL = (
286 'https://m.facebook.com/rihanna/photos/a.207477806675.138795.10092511675/1 0153911739606676/?type=3&source=54&ref=page_internal') 286 'https://m.facebook.com/rihanna/photos/a.207477806675.138795.10092511675/1 0153911739606676/?type=3&source=54&ref=page_internal')
287 ITEM_SELECTOR = '._57-r.touchable' 287 ITEM_SELECTOR = '._57-r.touchable'
288 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY 288 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
289 IS_SINGLE_PAGE_APP = True 289 IS_SINGLE_PAGE_APP = True
290 ITEM_SELECTOR_INDEX = 0 290 ITEM_SELECTOR_INDEX = 0
291 291
292 def _Login(self, action_runner):
293 action_runner.Navigate('https://m.facebook.com/rihanna')
294 action_runner.tab.WaitForDocumentReadyStateToBeComplete()
295 292
296 293 class FacebookPhotosDesktopStory(_MediaBrowsingStory):
297 class FacebookDesktopStory(_MediaBrowsingStory): 294 NAME = 'browse:media:facebook_photos'
298 NAME = 'browse:media:facebook'
299 URL = ( 295 URL = (
300 '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')
301 ITEM_SELECTOR = '.snowliftPager.next' 297 ITEM_SELECTOR = '.snowliftPager.next'
302 # Recording currently does not work. The page gets stuck in the 298 # Recording currently does not work. The page gets stuck in the
303 # theater viewer. 299 # theater viewer.
304 SUPPORTED_PLATFORMS = platforms.NO_PLATFORMS 300 SUPPORTED_PLATFORMS = platforms.NO_PLATFORMS
305 IS_SINGLE_PAGE_APP = True 301 IS_SINGLE_PAGE_APP = True
306
307 def _Login(self, action_runner):
308 action_runner.Navigate('https://www.facebook.com/rihanna')
309 action_runner.tab.WaitForDocumentReadyStateToBeComplete()
OLDNEW
« no previous file with comments | « tools/perf/page_sets/data/system_health_mobile_007.wpr.sha1 ('k') | tools/perf/page_sets/system_health/loading_stories.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698