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 ToughPinchZoomCasesPage(page_module.Page): | 10 class ToughPinchZoomCasesPage(page_module.Page): |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 247 |
248 | 248 |
249 class ToughPinchZoomCasesPageSet(page_set_module.PageSet): | 249 class ToughPinchZoomCasesPageSet(page_set_module.PageSet): |
250 | 250 |
251 """ Set of pages that are tricky to pinch-zoom """ | 251 """ Set of pages that are tricky to pinch-zoom """ |
252 | 252 |
253 def __init__(self): | 253 def __init__(self): |
254 super(ToughPinchZoomCasesPageSet, self).__init__( | 254 super(ToughPinchZoomCasesPageSet, self).__init__( |
255 credentials_path='data/credentials.json', | 255 credentials_path='data/credentials.json', |
256 user_agent_type='desktop', | 256 user_agent_type='desktop', |
257 archive_data_file='data/tough_pinch_zoom_cases.json') | 257 archive_data_file='data/tough_pinch_zoom_cases.json', |
| 258 bucket=page_set_module.PARTNER_BUCKET) |
258 | 259 |
259 self.AddPage(GoogleSearchPage(self)) | 260 self.AddPage(GoogleSearchPage(self)) |
260 self.AddPage(GmailPage(self)) | 261 self.AddPage(GmailPage(self)) |
261 self.AddPage(GoogleCalendarPage(self)) | 262 self.AddPage(GoogleCalendarPage(self)) |
262 self.AddPage(GoogleImageSearchPage(self)) | 263 self.AddPage(GoogleImageSearchPage(self)) |
263 self.AddPage(GooglePlusPage(self)) | 264 self.AddPage(GooglePlusPage(self)) |
264 self.AddPage(YoutubePage(self)) | 265 self.AddPage(YoutubePage(self)) |
265 self.AddPage(BlogSpotPage(self)) | 266 self.AddPage(BlogSpotPage(self)) |
266 self.AddPage(FacebookPage(self)) | 267 self.AddPage(FacebookPage(self)) |
267 self.AddPage(LinkedinPage(self)) | 268 self.AddPage(LinkedinPage(self)) |
(...skipping 18 matching lines...) Expand all Loading... |
286 | 287 |
287 self.AddPage(YahooGamePage(self)) | 288 self.AddPage(YahooGamePage(self)) |
288 | 289 |
289 # Why: #1 Alexa recreation | 290 # Why: #1 Alexa recreation |
290 self.AddPage(ToughPinchZoomCasesPage('http://booking.com', self)) | 291 self.AddPage(ToughPinchZoomCasesPage('http://booking.com', self)) |
291 | 292 |
292 self.AddPage(YahooAnswersPage(self)) | 293 self.AddPage(YahooAnswersPage(self)) |
293 | 294 |
294 # Why: #1 Alexa sports | 295 # Why: #1 Alexa sports |
295 self.AddPage(ToughPinchZoomCasesPage('http://sports.yahoo.com/', self)) | 296 self.AddPage(ToughPinchZoomCasesPage('http://sports.yahoo.com/', self)) |
OLD | NEW |