Change next_proto member type.
[chromium-blink-merge.git] / tools / perf / page_sets / typical_25.py
blob6df7860c6dcfe760e6d3fb69eeb6c6330f2e58b0
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 page_set as page_set_module
8 class Typical25Page(page_module.Page):
10 def __init__(self, url, page_set):
11 super(Typical25Page, self).__init__(url=url, page_set=page_set)
12 self.user_agent_type = 'desktop'
13 self.archive_data_file = 'data/typical_25.json'
15 def RunSmoothness(self, action_runner):
16 interaction = action_runner.BeginGestureInteraction(
17 'ScrollAction', is_smooth=True)
18 action_runner.ScrollPage()
19 interaction.End()
22 class Typical25PageSet(page_set_module.PageSet):
24 """ Pages designed to represent the median, not highly optimized web """
26 def __init__(self):
27 super(Typical25PageSet, self).__init__(
28 user_agent_type='desktop',
29 archive_data_file='data/typical_25.json',
30 bucket=page_set_module.PARTNER_BUCKET)
32 urls_list = [
33 # Why: Alexa games #48
34 'http://www.nick.com/games',
35 # Why: Alexa sports #45
36 'http://www.rei.com/',
37 # Why: Alexa sports #50
38 'http://www.fifa.com/',
39 # Why: Alexa shopping #41
40 'http://www.gamestop.com/ps3',
41 # Why: Alexa shopping #25
42 'http://www.barnesandnoble.com/u/books-bestselling-books/379003057/',
43 # Why: Alexa news #55
44 ('http://www.economist.com/news/science-and-technology/21573529-small-'
45 'models-cosmic-phenomena-are-shedding-light-real-thing-how-build'),
46 # Why: Alexa news #67
47 'http://www.theonion.com',
48 'http://arstechnica.com/',
49 # Why: Alexa home #10
50 'http://allrecipes.com/Recipe/Pull-Apart-Hot-Cross-Buns/Detail.aspx',
51 'http://www.html5rocks.com/en/',
52 'http://www.mlb.com/',
53 # pylint: disable=C0301
54 'http://gawker.com/5939683/based-on-a-true-story-is-a-rotten-lie-i-hope-you-never-believe',
55 'http://www.imdb.com/title/tt0910970/',
56 'http://www.flickr.com/search/?q=monkeys&f=hp',
57 'http://money.cnn.com/',
58 'http://www.nationalgeographic.com/',
59 'http://premierleague.com',
60 'http://www.osubeavers.com/',
61 'http://walgreens.com',
62 'http://colorado.edu',
63 ('http://www.ticketmaster.com/JAY-Z-and-Justin-Timberlake-tickets/artist/'
64 '1837448?brand=none&tm_link=tm_homeA_rc_name2'),
65 # pylint: disable=C0301
66 'http://www.theverge.com/2013/3/5/4061684/inside-ted-the-smartest-bubble-in-the-world',
67 'http://www.airbnb.com/',
68 'http://www.ign.com/',
69 # Why: Alexa health #25
70 'http://www.fda.gov',
73 for url in urls_list:
74 self.AddPage(Typical25Page(url, self))