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