Chromium Code Reviews| Index: tools/perf/page_sets/system_health/loading_stories.py | 
| diff --git a/tools/perf/page_sets/system_health/loading_stories.py b/tools/perf/page_sets/system_health/loading_stories.py | 
| index f3ab950d6bcff18cdc81910a676a3992f380800f..23640a6090621eb0d4d0f6bb85e68775204b9d31 100644 | 
| --- a/tools/perf/page_sets/system_health/loading_stories.py | 
| +++ b/tools/perf/page_sets/system_health/loading_stories.py | 
| @@ -71,6 +71,30 @@ class LoadEbayStory(_LoadingStory): | 
| URL = 'https://www.ebay.com/sch/i.html?_nkw=headphones' | 
| +class LoadAvito(_LoadingStory): | 
| + NAME='load:shopping:avito' | 
| + URL='https://m.avito.ru/' | 
| + SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 
| 
 
perezju
2017/03/31 08:45:54
We actually want to move away (as much as possible
 
ssid
2017/04/04 03:43:48
Moved a few stories. Thanks! Some of these don't f
 
 | 
| + | 
| + | 
| +class LoadFlipkart(_LoadingStory): | 
| + NAME='load:shopping:flipkart' | 
| + URL='https://flipkart.com' | 
| + SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 
| + | 
| + | 
| +class LoadLazada(_LoadingStory): | 
| + NAME='load:shopping:lazada' | 
| + URL='http://www.lazada.co.id' | 
| + SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 
| + | 
| + | 
| +class LoadOLX(_LoadingStory): | 
| + NAME='load:shopping:olx' | 
| + URL='http://m.olx.co.id' | 
| + SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 
| + | 
| + | 
| ################################################################################ | 
| # Social networks. | 
| ################################################################################ | 
| @@ -142,6 +166,7 @@ class LoadFlipboardStory(_LoadingStory): | 
| class LoadHackerNewsStory(_LoadingStory): | 
| NAME = 'load:news:hackernews' | 
| URL = 'https://news.ycombinator.com' | 
| + SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY | 
| class LoadNytimesDesktopStory(_LoadingStory): | 
| @@ -210,6 +235,36 @@ class LoadWikipediaStory(_LoadingStory): | 
| URL = 'https://en.wikipedia.org/wiki/Science' | 
| +class LoadCricBuzz(_LoadingStory): | 
| + NAME='load:news:cricbuzz' | 
| + URL='http://m.cricbuzz.com' | 
| + SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 
| + | 
| + | 
| +class LoadIrctc(_LoadingStory): | 
| + NAME='load:news:irctc' | 
| + URL='https://www.irctc.co.in' | 
| + SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 
| + | 
| + | 
| +class LoadTOI(_LoadingStory): | 
| + NAME='load:news:toi' | 
| + URL='http://m.timesofindia.com' | 
| + SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 
| + | 
| + | 
| +class LoadGlobo(_LoadingStory): | 
| + NAME='load:news:globo' | 
| + URL='http://www.globo.com/' | 
| + SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 
| + | 
| + | 
| +class LoadPolymer(_LoadingStory): | 
| + NAME='load:news:polymer' | 
| + URL='https://polymer-news.appspot.com/' | 
| + SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 
| + | 
| + | 
| ################################################################################ | 
| # Audio, images, and video. | 
| ################################################################################ | 
| @@ -331,11 +386,6 @@ class LoadGmailMobileStory(_LoadGmailBaseStory): | 
| action_runner.WaitForJavaScriptCondition( | 
| 'document.getElementById("apploadingdiv").style.height === "0px"') | 
| -class LoadMapsStory(_LoadingStory): | 
| - NAME = 'load:tools:maps' | 
| - URL = 'https://www.google.com/maps/place/London,+UK/' | 
| - | 
| - | 
| class LoadStackOverflowStory(_LoadingStory): | 
| NAME = 'load:tools:stackoverflow' | 
| URL = ( | 
| @@ -366,6 +416,30 @@ class LoadDriveStory(_LoadingStory): | 
| self.credentials_path) | 
| +class LoadMapsDesktopStory(_LoadingStory): | 
| + NAME = 'load:tools:maps' | 
| + URL='https://maps.google.co.in/' | 
| + SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY | 
| + | 
| + | 
| +class LoadMapsMobileStory(_LoadingStory): | 
| + NAME = 'load:tools:maps' | 
| + URL='https://maps.google.co.in/' | 
| + | 
| + def RunPageInteractions(self, action_runner): | 
| + action_runner.WaitForElement(selector='[id="ml-map"]') | 
| + action_runner.DragPage(left_start_ratio=0.3, top_start_ratio=0.3, | 
| + left_end_ratio=0.7, top_end_ratio=0.7, | 
| + use_touch=True) | 
| + action_runner.Wait(1) | 
| 
 
nednguyen
2017/03/31 09:00:16
One thing about these wait is if the page misbehav
 
ssid
2017/04/04 03:43:48
I actually added these waits as a user behavior ra
 
perezju
2017/04/04 09:23:38
I would suggest to add some comments to any remain
 
 | 
| + action_runner.PinchPage() | 
| + action_runner.Wait(1) | 
| + action_runner.SwipePage() | 
| + action_runner.Wait(1) | 
| + | 
| + SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 
| + | 
| + | 
| ################################################################################ | 
| # In-browser games (HTML5 and Flash). | 
| ################################################################################ |