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 # pylint: disable=W0401,W0614 | 4 # pylint: disable=W0401,W0614 |
5 from telemetry.page.actions.all_page_actions import * | 5 from telemetry.page.actions.all_page_actions import * |
6 from telemetry.page import page as page_module | 6 from telemetry.page import page as page_module |
7 from telemetry.page import page_set as page_set_module | 7 from telemetry.page import page_set as page_set_module |
8 | 8 |
9 | 9 |
10 class SimpleScrollPage(page_module.Page): | 10 class SimpleScrollPage(page_module.Page): |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 super(Top10PageSet, self).__init__( | 90 super(Top10PageSet, self).__init__( |
91 archive_data_file='data/top_10.json', | 91 archive_data_file='data/top_10.json', |
92 credentials_path='data/credentials.json', | 92 credentials_path='data/credentials.json', |
93 user_agent_type='desktop', | 93 user_agent_type='desktop', |
94 bucket=page_set_module.PARTNER_BUCKET) | 94 bucket=page_set_module.PARTNER_BUCKET) |
95 | 95 |
96 # top google property; a google tab is often open | 96 # top google property; a google tab is often open |
97 self.AddPage(Google(self)) | 97 self.AddPage(Google(self)) |
98 | 98 |
99 # productivity, top google properties | 99 # productivity, top google properties |
100 self.AddPage(Gmail(self)) | 100 # TODO(dominikg): fix crbug.com/386152 |
| 101 #self.AddPage(Gmail(self)) |
101 | 102 |
102 # productivity, top google properties | 103 # productivity, top google properties |
103 self.AddPage(GoogleCalendar(self)) | 104 self.AddPage(GoogleCalendar(self)) |
104 | 105 |
105 # #3 (Alexa global) | 106 # #3 (Alexa global) |
106 self.AddPage(Youtube(self)) | 107 self.AddPage(Youtube(self)) |
107 | 108 |
108 # top social, Public profile | 109 # top social, Public profile |
109 self.AddPage(Facebook(self)) | 110 self.AddPage(Facebook(self)) |
110 | 111 |
111 # #6 (Alexa) most visited worldwide,Picked an interesting page | 112 # #6 (Alexa) most visited worldwide,Picked an interesting page |
112 self.AddPage(SimpleScrollPage('http://en.wikipedia.org/wiki/Wikipedia', | 113 self.AddPage(SimpleScrollPage('http://en.wikipedia.org/wiki/Wikipedia', |
113 self, name='Wikipedia')) | 114 self, name='Wikipedia')) |
114 | 115 |
115 # #1 world commerce website by visits; #3 commerce in the US by time spent | 116 # #1 world commerce website by visits; #3 commerce in the US by time spent |
116 self.AddPage(SimpleScrollPage('http://www.amazon.com', self)) | 117 self.AddPage(SimpleScrollPage('http://www.amazon.com', self)) |
117 | 118 |
118 # #4 Alexa | 119 # #4 Alexa |
119 self.AddPage(SimpleScrollPage('http://www.yahoo.com/', self)) | 120 self.AddPage(SimpleScrollPage('http://www.yahoo.com/', self)) |
120 | 121 |
121 # #16 Alexa | 122 # #16 Alexa |
122 self.AddPage(SimpleScrollPage('http://www.bing.com/', self)) | 123 self.AddPage(SimpleScrollPage('http://www.bing.com/', self)) |
123 | 124 |
124 # #20 Alexa | 125 # #20 Alexa |
125 self.AddPage(SimpleScrollPage('http://www.ask.com/', self)) | 126 self.AddPage(SimpleScrollPage('http://www.ask.com/', self)) |
OLD | NEW |