| 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 shared_page_state | 5 from telemetry.page import shared_page_state |
| 6 from telemetry import story | 6 from telemetry import story |
| 7 | 7 |
| 8 | 8 |
| 9 class ToughPinchZoomCasesPage(page_module.Page): | 9 class ToughPinchZoomCasesPage(page_module.Page): |
| 10 | 10 |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 action_runner.Wait(2) | 211 action_runner.Wait(2) |
| 212 | 212 |
| 213 | 213 |
| 214 class ToughPinchZoomCasesPageSet(story.StorySet): | 214 class ToughPinchZoomCasesPageSet(story.StorySet): |
| 215 | 215 |
| 216 """ Set of pages that are tricky to pinch-zoom """ | 216 """ Set of pages that are tricky to pinch-zoom """ |
| 217 | 217 |
| 218 def __init__(self, target_scale_factor): | 218 def __init__(self, target_scale_factor): |
| 219 super(ToughPinchZoomCasesPageSet, self).__init__( | 219 super(ToughPinchZoomCasesPageSet, self).__init__( |
| 220 archive_data_file='data/tough_pinch_zoom_cases.json', | 220 archive_data_file='data/tough_pinch_zoom_cases.json', |
| 221 cloud_storage_bucket=story.PARTNER_BUCKET, | 221 cloud_storage_bucket=story.PARTNER_BUCKET) |
| 222 verify_names=True) | |
| 223 | 222 |
| 224 self.target_scale_factor = target_scale_factor | 223 self.target_scale_factor = target_scale_factor |
| 225 | 224 |
| 226 self.AddStory(GoogleSearchPage(self)) | 225 self.AddStory(GoogleSearchPage(self)) |
| 227 self.AddStory(GmailPage(self)) | 226 self.AddStory(GmailPage(self)) |
| 228 self.AddStory(GoogleCalendarPage(self)) | 227 self.AddStory(GoogleCalendarPage(self)) |
| 229 self.AddStory(GoogleImageSearchPage(self)) | 228 self.AddStory(GoogleImageSearchPage(self)) |
| 230 self.AddStory(YoutubePage(self)) | 229 self.AddStory(YoutubePage(self)) |
| 231 self.AddStory(BlogSpotPage(self)) | 230 self.AddStory(BlogSpotPage(self)) |
| 232 self.AddStory(FacebookPage(self)) | 231 self.AddStory(FacebookPage(self)) |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 def __init__(self): | 271 def __init__(self): |
| 273 super(AndroidToughPinchZoomCasesPageSet, self).__init__(7.0) | 272 super(AndroidToughPinchZoomCasesPageSet, self).__init__(7.0) |
| 274 | 273 |
| 275 | 274 |
| 276 class DesktopToughPinchZoomCasesPageSet(ToughPinchZoomCasesPageSet): | 275 class DesktopToughPinchZoomCasesPageSet(ToughPinchZoomCasesPageSet): |
| 277 | 276 |
| 278 """ ToughPinchZoomCasesPageSet using the maximum desktop zoom level """ | 277 """ ToughPinchZoomCasesPageSet using the maximum desktop zoom level """ |
| 279 | 278 |
| 280 def __init__(self): | 279 def __init__(self): |
| 281 super(DesktopToughPinchZoomCasesPageSet, self).__init__(4.0) | 280 super(DesktopToughPinchZoomCasesPageSet, self).__init__(4.0) |
| OLD | NEW |