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