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 from page_sets import top_pages | 7 from page_sets import top_pages |
8 | 8 |
9 | 9 |
10 def _IssueMarkerAndScroll(action_runner): | 10 def _IssueMarkerAndScroll(action_runner): |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 class Top25SmoothPageSet(page_set_module.PageSet): | 89 class Top25SmoothPageSet(page_set_module.PageSet): |
90 | 90 |
91 """ Pages hand-picked for 2012 CrOS scrolling tuning efforts. """ | 91 """ Pages hand-picked for 2012 CrOS scrolling tuning efforts. """ |
92 | 92 |
93 def __init__(self): | 93 def __init__(self): |
94 super(Top25SmoothPageSet, self).__init__( | 94 super(Top25SmoothPageSet, self).__init__( |
95 user_agent_type='desktop', | 95 user_agent_type='desktop', |
96 archive_data_file='data/top_25.json', | 96 archive_data_file='data/top_25.json', |
97 bucket=page_set_module.PARTNER_BUCKET) | 97 bucket=page_set_module.PARTNER_BUCKET) |
98 | 98 |
99 self.AddPage(_CreatePageClassWithSmoothInteractions( | 99 self.AddUserStory(_CreatePageClassWithSmoothInteractions( |
100 top_pages.GoogleWebSearchPage)(self)) | 100 top_pages.GoogleWebSearchPage)(self)) |
101 self.AddPage(GmailSmoothPage(self)) | 101 self.AddUserStory(GmailSmoothPage(self)) |
102 self.AddPage(GoogleCalendarSmoothPage(self)) | 102 self.AddUserStory(GoogleCalendarSmoothPage(self)) |
103 self.AddPage(_CreatePageClassWithSmoothInteractions( | 103 self.AddUserStory(_CreatePageClassWithSmoothInteractions( |
104 top_pages.GoogleImageSearchPage)(self)) | 104 top_pages.GoogleImageSearchPage)(self)) |
105 self.AddPage(GoogleDocSmoothPage(self)) | 105 self.AddUserStory(GoogleDocSmoothPage(self)) |
106 self.AddPage(_CreatePageClassWithSmoothInteractions( | 106 self.AddUserStory(_CreatePageClassWithSmoothInteractions( |
107 top_pages.GooglePlusPage)(self)) | 107 top_pages.GooglePlusPage)(self)) |
108 self.AddPage(_CreatePageClassWithSmoothInteractions( | 108 self.AddUserStory(_CreatePageClassWithSmoothInteractions( |
109 top_pages.YoutubePage)(self)) | 109 top_pages.YoutubePage)(self)) |
110 self.AddPage(_CreatePageClassWithSmoothInteractions( | 110 self.AddUserStory(_CreatePageClassWithSmoothInteractions( |
111 top_pages.BlogspotPage)(self)) | 111 top_pages.BlogspotPage)(self)) |
112 self.AddPage(_CreatePageClassWithSmoothInteractions( | 112 self.AddUserStory(_CreatePageClassWithSmoothInteractions( |
113 top_pages.WordpressPage)(self)) | 113 top_pages.WordpressPage)(self)) |
114 self.AddPage(_CreatePageClassWithSmoothInteractions( | 114 self.AddUserStory(_CreatePageClassWithSmoothInteractions( |
115 top_pages.FacebookPage)(self)) | 115 top_pages.FacebookPage)(self)) |
116 self.AddPage(_CreatePageClassWithSmoothInteractions( | 116 self.AddUserStory(_CreatePageClassWithSmoothInteractions( |
117 top_pages.LinkedinPage)(self)) | 117 top_pages.LinkedinPage)(self)) |
118 self.AddPage(_CreatePageClassWithSmoothInteractions( | 118 self.AddUserStory(_CreatePageClassWithSmoothInteractions( |
119 top_pages.WikipediaPage)(self)) | 119 top_pages.WikipediaPage)(self)) |
120 self.AddPage(_CreatePageClassWithSmoothInteractions( | 120 self.AddUserStory(_CreatePageClassWithSmoothInteractions( |
121 top_pages.TwitterPage)(self)) | 121 top_pages.TwitterPage)(self)) |
122 self.AddPage(_CreatePageClassWithSmoothInteractions( | 122 self.AddUserStory(_CreatePageClassWithSmoothInteractions( |
123 top_pages.PinterestPage)(self)) | 123 top_pages.PinterestPage)(self)) |
124 self.AddPage(ESPNSmoothPage(self)) | 124 self.AddUserStory(ESPNSmoothPage(self)) |
125 self.AddPage(_CreatePageClassWithSmoothInteractions( | 125 self.AddUserStory(_CreatePageClassWithSmoothInteractions( |
126 top_pages.WeatherPage)(self)) | 126 top_pages.WeatherPage)(self)) |
127 self.AddPage(_CreatePageClassWithSmoothInteractions( | 127 self.AddUserStory(_CreatePageClassWithSmoothInteractions( |
128 top_pages.YahooGamesPage)(self)) | 128 top_pages.YahooGamesPage)(self)) |
129 | 129 |
130 other_urls = [ | 130 other_urls = [ |
131 # Why: #1 news worldwide (Alexa global) | 131 # Why: #1 news worldwide (Alexa global) |
132 'http://news.yahoo.com', | 132 'http://news.yahoo.com', |
133 # Why: #2 news worldwide | 133 # Why: #2 news worldwide |
134 'http://www.cnn.com', | 134 'http://www.cnn.com', |
135 # Why: #1 world commerce website by visits; #3 commerce in the US by | 135 # Why: #1 world commerce website by visits; #3 commerce in the US by |
136 # time spent | 136 # time spent |
137 'http://www.amazon.com', | 137 'http://www.amazon.com', |
138 # Why: #1 commerce website by time spent by users in US | 138 # Why: #1 commerce website by time spent by users in US |
139 'http://www.ebay.com', | 139 'http://www.ebay.com', |
140 # Why: #1 Alexa recreation | 140 # Why: #1 Alexa recreation |
141 'http://booking.com', | 141 'http://booking.com', |
142 # Why: #1 Alexa reference | 142 # Why: #1 Alexa reference |
143 'http://answers.yahoo.com', | 143 'http://answers.yahoo.com', |
144 # Why: #1 Alexa sports | 144 # Why: #1 Alexa sports |
145 'http://sports.yahoo.com/', | 145 'http://sports.yahoo.com/', |
146 # Why: top tech blog | 146 # Why: top tech blog |
147 'http://techcrunch.com' | 147 'http://techcrunch.com' |
148 ] | 148 ] |
149 | 149 |
150 for url in other_urls: | 150 for url in other_urls: |
151 self.AddPage(TopSmoothPage(url, self)) | 151 self.AddUserStory(TopSmoothPage(url, self)) |
OLD | NEW |