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 ToughPinchZoomCasesPage(page_module.Page): | 8 class ToughPinchZoomCasesPage(page_module.Page): |
9 | 9 |
10 def __init__(self, url, page_set, name=''): | 10 def __init__(self, url, page_set, name=''): |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 class ToughPinchZoomCasesPageSet(page_set_module.PageSet): | 243 class ToughPinchZoomCasesPageSet(page_set_module.PageSet): |
244 | 244 |
245 """ Set of pages that are tricky to pinch-zoom """ | 245 """ Set of pages that are tricky to pinch-zoom """ |
246 | 246 |
247 def __init__(self): | 247 def __init__(self): |
248 super(ToughPinchZoomCasesPageSet, self).__init__( | 248 super(ToughPinchZoomCasesPageSet, self).__init__( |
249 user_agent_type='desktop', | 249 user_agent_type='desktop', |
250 archive_data_file='data/tough_pinch_zoom_cases.json', | 250 archive_data_file='data/tough_pinch_zoom_cases.json', |
251 bucket=page_set_module.PARTNER_BUCKET) | 251 bucket=page_set_module.PARTNER_BUCKET) |
252 | 252 |
253 self.AddPage(GoogleSearchPage(self)) | 253 self.AddUserStory(GoogleSearchPage(self)) |
254 self.AddPage(GmailPage(self)) | 254 self.AddUserStory(GmailPage(self)) |
255 self.AddPage(GoogleCalendarPage(self)) | 255 self.AddUserStory(GoogleCalendarPage(self)) |
256 self.AddPage(GoogleImageSearchPage(self)) | 256 self.AddUserStory(GoogleImageSearchPage(self)) |
257 self.AddPage(GooglePlusPage(self)) | 257 self.AddUserStory(GooglePlusPage(self)) |
258 self.AddPage(YoutubePage(self)) | 258 self.AddUserStory(YoutubePage(self)) |
259 self.AddPage(BlogSpotPage(self)) | 259 self.AddUserStory(BlogSpotPage(self)) |
260 self.AddPage(FacebookPage(self)) | 260 self.AddUserStory(FacebookPage(self)) |
261 self.AddPage(LinkedinPage(self)) | 261 self.AddUserStory(LinkedinPage(self)) |
262 self.AddPage(WikipediaPage(self)) | 262 self.AddUserStory(WikipediaPage(self)) |
263 self.AddPage(TwitterPage(self)) | 263 self.AddUserStory(TwitterPage(self)) |
264 self.AddPage(ESPNPage(self)) | 264 self.AddUserStory(ESPNPage(self)) |
265 | 265 |
266 # Why: #1 news worldwide (Alexa global) | 266 # Why: #1 news worldwide (Alexa global) |
267 self.AddPage(ToughPinchZoomCasesPage('http://news.yahoo.com', self)) | 267 self.AddUserStory(ToughPinchZoomCasesPage('http://news.yahoo.com', self)) |
268 | 268 |
269 # Why: #2 news worldwide | 269 # Why: #2 news worldwide |
270 self.AddPage(ToughPinchZoomCasesPage('http://www.cnn.com', self)) | 270 self.AddUserStory(ToughPinchZoomCasesPage('http://www.cnn.com', self)) |
271 | 271 |
272 self.AddPage(WeatherDotComPage(self)) | 272 self.AddUserStory(WeatherDotComPage(self)) |
273 | 273 |
274 # Why: #1 world commerce website by visits; #3 commerce in the US by time | 274 # Why: #1 world commerce website by visits; #3 commerce in the US by time |
275 # spent | 275 # spent |
276 self.AddPage(ToughPinchZoomCasesPage('http://www.amazon.com', self)) | 276 self.AddUserStory(ToughPinchZoomCasesPage('http://www.amazon.com', self)) |
277 | 277 |
278 # Why: #1 commerce website by time spent by users in US | 278 # Why: #1 commerce website by time spent by users in US |
279 self.AddPage(ToughPinchZoomCasesPage('http://www.ebay.com', self)) | 279 self.AddUserStory(ToughPinchZoomCasesPage('http://www.ebay.com', self)) |
280 | 280 |
281 self.AddPage(YahooGamePage(self)) | 281 self.AddUserStory(YahooGamePage(self)) |
282 | 282 |
283 # Why: #1 Alexa recreation | 283 # Why: #1 Alexa recreation |
284 self.AddPage(ToughPinchZoomCasesPage('http://booking.com', self)) | 284 self.AddUserStory(ToughPinchZoomCasesPage('http://booking.com', self)) |
285 | 285 |
286 self.AddPage(YahooAnswersPage(self)) | 286 self.AddUserStory(YahooAnswersPage(self)) |
287 | 287 |
288 # Why: #1 Alexa sports | 288 # Why: #1 Alexa sports |
289 self.AddPage(ToughPinchZoomCasesPage('http://sports.yahoo.com/', self)) | 289 self.AddUserStory(ToughPinchZoomCasesPage('http://sports.yahoo.com/', self)) |
OLD | NEW |