Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(518)

Side by Side Diff: tools/perf/page_sets/chrome_proxy/top_20.py

Issue 397483002: Move chrome_proxy tests from under tools/perf to tools/chrome_proxy/integration_tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments and sync'ed Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/perf/page_sets/chrome_proxy/synthetic.py ('k') | tools/perf/page_sets/data/OWNERS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
6
7
8 class Top20Page(page_module.Page):
9
10 def __init__(self, url, page_set, name=''):
11 super(Top20Page, self).__init__(url=url, page_set=page_set, name=name)
12 self.archive_data_file = '../data/chrome_proxy_top_20.json'
13
14 class Top20PageSet(page_set_module.PageSet):
15
16 """ Pages hand-picked for Chrome Proxy tests. """
17
18 def __init__(self):
19 super(Top20PageSet, self).__init__(
20 archive_data_file='../data/chrome_proxy_top_20.json')
21
22 # Why: top google property; a google tab is often open
23 self.AddPage(Top20Page('https://www.google.com/#hl=en&q=barack+obama',
24 self))
25
26 # Why: #3 (Alexa global)
27 self.AddPage(Top20Page('http://www.youtube.com', self))
28
29 # Why: #18 (Alexa global), Picked an interesting post
30 self.AddPage(Top20Page(
31 # pylint: disable=C0301
32 'http://en.blog.wordpress.com/2012/09/04/freshly-pressed-editors-picks-for -august-2012/',
33 self, 'Wordpress'))
34
35 # Why: top social,Public profile
36 self.AddPage(Top20Page('http://www.facebook.com/barackobama', self,
37 'Facebook'))
38
39 # Why: #12 (Alexa global),Public profile
40 self.AddPage(Top20Page('http://www.linkedin.com/in/linustorvalds', self,
41 'LinkedIn'))
42
43 # Why: #6 (Alexa) most visited worldwide,Picked an interesting page
44 self.AddPage(Top20Page('http://en.wikipedia.org/wiki/Wikipedia', self,
45 'Wikipedia (1 tab)'))
46
47 # Why: #8 (Alexa global),Picked an interesting page
48 self.AddPage(Top20Page('https://twitter.com/katyperry', self, 'Twitter'))
49
50 # Why: #37 (Alexa global)
51 self.AddPage(Top20Page('http://pinterest.com', self, 'Pinterest'))
52
53 # Why: #1 sports
54 self.AddPage(Top20Page('http://espn.go.com', self, 'ESPN'))
55
56 # Why: #1 news worldwide (Alexa global)
57 self.AddPage(Top20Page('http://news.yahoo.com', self))
58
59 # Why: #2 news worldwide
60 self.AddPage(Top20Page('http://www.cnn.com', self))
61
62 # Why: #7 (Alexa news); #27 total time spent,Picked interesting page
63 self.AddPage(Top20Page(
64 'http://www.weather.com/weather/right-now/Mountain+View+CA+94043',
65 self, 'Weather.com'))
66
67 # Why: #1 world commerce website by visits; #3 commerce in the US by time
68 # spent
69 self.AddPage(Top20Page('http://www.amazon.com', self))
70
71 # Why: #1 commerce website by time spent by users in US
72 self.AddPage(Top20Page('http://www.ebay.com', self))
73
74 # Why: #1 games according to Alexa (with actual games in it)
75 self.AddPage(Top20Page('http://games.yahoo.com', self))
76
77 # Why: #1 Alexa recreation
78 self.AddPage(Top20Page('http://booking.com', self))
79
80 # Why: #1 Alexa reference
81 self.AddPage(Top20Page('http://answers.yahoo.com', self))
82
83 # Why: #1 Alexa sports
84 self.AddPage(Top20Page('http://sports.yahoo.com/', self))
85
86 # Why: top tech blog
87 self.AddPage(Top20Page('http://techcrunch.com', self))
88
89 self.AddPage(Top20Page('http://www.nytimes.com', self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/chrome_proxy/synthetic.py ('k') | tools/perf/page_sets/data/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698