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

Unified Diff: tools/perf/page_sets/system_health/browsing_stories.py

Issue 2888133002: Modify list_system_health_stories to generate_system_health_csv (Closed)
Patch Set: Address Juan's nits Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: tools/perf/page_sets/system_health/browsing_stories.py
diff --git a/tools/perf/page_sets/system_health/browsing_stories.py b/tools/perf/page_sets/system_health/browsing_stories.py
index 75ba50a20f98d63a565a72f0a2f8a61929710949..2a5639d3296557181b0b7c9c23d443426cda59e0 100644
--- a/tools/perf/page_sets/system_health/browsing_stories.py
+++ b/tools/perf/page_sets/system_health/browsing_stories.py
@@ -50,6 +50,10 @@ class _BrowsingStory(system_health_story.SystemHealthStory):
action_runner.NavigateBack()
self._WaitForNavigation(action_runner)
+ @classmethod
+ def GenerateStoryDescription(cls):
+ return 'Load %s and navigate to some items/articles.' % cls.URL
+
class _ArticleBrowsingStory(_BrowsingStory):
"""Abstract base class for user stories browsing news / shopping articles.
@@ -396,6 +400,9 @@ class ImgurDesktopStory(_MediaBrowsingStory):
class YouTubeMobileStory(_MediaBrowsingStory):
+ """Load a typical YouTube video then navigate to a next few videos. Stop and
+ watch each video for few seconds.
+ """
NAME = 'browse:media:youtube'
URL = 'https://m.youtube.com/watch?v=QGfhS1hfTWw&autoplay=false'
ITEM_SELECTOR = '._mhgb > a'
@@ -407,6 +414,9 @@ class YouTubeMobileStory(_MediaBrowsingStory):
class YouTubeDesktopStory(_MediaBrowsingStory):
+ """Load a typical YouTube video then navigate to a next few videos. Stop and
+ watch each video for a few seconds.
+ """
NAME = 'browse:media:youtube'
URL = 'https://www.youtube.com/watch?v=QGfhS1hfTWw&autoplay=false'
ITEM_SELECTOR = '.yt-uix-simple-thumb-related'
@@ -421,6 +431,9 @@ class YouTubeDesktopStory(_MediaBrowsingStory):
class FacebookPhotosMobileStory(_MediaBrowsingStory):
+ """Load a photo page from Rihanna's facebook page then navigate a few next
+ photos.
+ """
NAME = 'browse:media:facebook_photos'
URL = (
'https://m.facebook.com/rihanna/photos/a.207477806675.138795.10092511675/10153911739606676/?type=3&source=54&ref=page_internal')
@@ -432,6 +445,9 @@ class FacebookPhotosMobileStory(_MediaBrowsingStory):
class FacebookPhotosDesktopStory(_MediaBrowsingStory):
+ """Load a photo page from Rihanna's facebook page then navigate a few next
+ photos.
+ """
NAME = 'browse:media:facebook_photos'
URL = (
'https://www.facebook.com/rihanna/photos/a.207477806675.138795.10092511675/10153911739606676/?type=3&theater')
« no previous file with comments | « tools/perf/page_sets/system_health/background_stories.py ('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