exclude PluginsFieldTrialTest.NoPrefLeftBehind from valgrind bot
[chromium-blink-merge.git] / tools / perf / page_sets / typical_10_mobile.py
blob5b03a73c4e2aa850b40e7390ad489821151307db
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4 from telemetry.page import page as page_module
5 from telemetry.page import shared_page_state
6 from telemetry import story
9 class Typical10MobilePage(page_module.Page):
11 def __init__(self, url, page_set, name=''):
12 super(Typical10MobilePage, self).__init__(
13 url=url, page_set=page_set, name=name,
14 credentials_path = 'data/credentials.json',
15 shared_page_state_class=shared_page_state.SharedMobilePageState)
16 self.archive_data_file = 'data/typical_10_mobile.json'
18 def RunPageInteractions(self, action_runner):
19 action_runner.Wait(20)
20 action_runner.ScrollPage()
21 action_runner.Wait(20)
23 class Typical10MobileReloadPage(Typical10MobilePage):
25 def __init__(self, url, page_set, name=''):
26 super(Typical10MobileReloadPage, self).__init__(
27 url=url, page_set=page_set, name=name,)
29 def RunPageInteractions(self, action_runner):
30 for _ in range(0, 5):
31 action_runner.ReloadPage()
32 action_runner.WaitForJavaScriptCondition(
33 'document.readyState === "complete"')
36 urls_list = [
37 # Why: Top site
38 'http://m.facebook.com/barackobama',
39 # Why: Wikipedia article with lots of pictures, German language
40 'http://de.m.wikipedia.org/wiki/K%C3%B6lner_Dom',
41 # Why: current top Q&A on popular Japanese site
42 'http://m.chiebukuro.yahoo.co.jp/detail/q10136829180',
43 # Why: news article on popular site
44 'http://m.huffpost.com/us/entry/6004486',
45 # Why: news article on popular site
46 'http://www.cnn.com/2014/03/31/showbiz/tv/himym-finale/index.html',
47 # Why: Popular RTL language site
48 'http://m.ynet.co.il',
49 # Why: Popular Russian language site
50 'http://www.rg.ru/2014/10/21/cska-site.html',
51 # Why: Popular shopping site
52 'http://m.ebay.com/itm/351157205404',
53 # Why: Popular viral site, lots of images
54 'http://siriuslymeg.tumblr.com/',
55 # Why: Popular Chinese language site.
56 'http://wapbaike.baidu.com/',
60 class Typical10MobilePageSet(story.StorySet):
61 """10 typical mobile pages, used for power testing."""
63 def __init__(self):
64 super(Typical10MobilePageSet, self).__init__(
65 archive_data_file='data/typical_10_mobile.json',
66 cloud_storage_bucket=story.PARTNER_BUCKET)
68 for url in urls_list:
69 self.AddStory(Typical10MobilePage(url, self))
71 class Typical10MobileReloadPageSet(story.StorySet):
72 """10 typical mobile pages, used for reloading power testing."""
74 def __init__(self):
75 super(Typical10MobileReloadPageSet, self).__init__(
76 archive_data_file='data/typical_10_mobile.json',
77 cloud_storage_bucket=story.PARTNER_BUCKET)
79 for url in urls_list:
80 self.AddStory(Typical10MobileReloadPage(url, self))