OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 from telemetry.page import page as page_module | 4 from telemetry.page import page as page_module |
5 from telemetry.page import page_set as page_set_module | 5 from telemetry.page import page_set as page_set_module |
6 | 6 |
7 | 7 |
8 class SimpleScrollPage(page_module.Page): | 8 class SimpleScrollPage(page_module.Page): |
9 def __init__(self, url, page_set, credentials='', name=''): | 9 def __init__(self, url, page_set, credentials='', name=''): |
10 super(SimpleScrollPage, self).__init__( | 10 super(SimpleScrollPage, self).__init__( |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 class Top10PageSet(page_set_module.PageSet): | 89 class Top10PageSet(page_set_module.PageSet): |
90 """10 Pages chosen from Alexa top sites""" | 90 """10 Pages chosen from Alexa top sites""" |
91 | 91 |
92 def __init__(self): | 92 def __init__(self): |
93 super(Top10PageSet, self).__init__( | 93 super(Top10PageSet, self).__init__( |
94 archive_data_file='data/top_10.json', | 94 archive_data_file='data/top_10.json', |
95 user_agent_type='desktop', | 95 user_agent_type='desktop', |
96 bucket=page_set_module.PARTNER_BUCKET) | 96 bucket=page_set_module.PARTNER_BUCKET) |
97 | 97 |
98 # top google property; a google tab is often open | 98 # top google property; a google tab is often open |
99 self.AddPage(Google(self)) | 99 self.AddUserStory(Google(self)) |
100 | 100 |
101 # productivity, top google properties | 101 # productivity, top google properties |
102 # TODO(dominikg): fix crbug.com/386152 | 102 # TODO(dominikg): fix crbug.com/386152 |
103 #self.AddPage(Gmail(self)) | 103 #self.AddUserStory(Gmail(self)) |
104 | 104 |
105 # productivity, top google properties | 105 # productivity, top google properties |
106 self.AddPage(GoogleCalendar(self)) | 106 self.AddUserStory(GoogleCalendar(self)) |
107 | 107 |
108 # #3 (Alexa global) | 108 # #3 (Alexa global) |
109 self.AddPage(Youtube(self)) | 109 self.AddUserStory(Youtube(self)) |
110 | 110 |
111 # top social, Public profile | 111 # top social, Public profile |
112 self.AddPage(Facebook(self)) | 112 self.AddUserStory(Facebook(self)) |
113 | 113 |
114 # #6 (Alexa) most visited worldwide,Picked an interesting page | 114 # #6 (Alexa) most visited worldwide,Picked an interesting page |
115 self.AddPage(SimpleScrollPage('http://en.wikipedia.org/wiki/Wikipedia', | 115 self.AddUserStory(SimpleScrollPage('http://en.wikipedia.org/wiki/Wikipedia', |
116 self, name='Wikipedia')) | 116 self, name='Wikipedia')) |
117 | 117 |
118 # #1 world commerce website by visits; #3 commerce in the US by time spent | 118 # #1 world commerce website by visits; #3 commerce in the US by time spent |
119 self.AddPage(SimpleScrollPage('http://www.amazon.com', self)) | 119 self.AddUserStory(SimpleScrollPage('http://www.amazon.com', self)) |
120 | 120 |
121 # #4 Alexa | 121 # #4 Alexa |
122 self.AddPage(SimpleScrollPage('http://www.yahoo.com/', self)) | 122 self.AddUserStory(SimpleScrollPage('http://www.yahoo.com/', self)) |
123 | 123 |
124 # #16 Alexa | 124 # #16 Alexa |
125 self.AddPage(SimpleScrollPage('http://www.bing.com/', self)) | 125 self.AddUserStory(SimpleScrollPage('http://www.bing.com/', self)) |
126 | 126 |
127 # #20 Alexa | 127 # #20 Alexa |
128 self.AddPage(SimpleScrollPage('http://www.ask.com/', self)) | 128 self.AddUserStory(SimpleScrollPage('http://www.ask.com/', self)) |
OLD | NEW |