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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 def __init__(self, page_set): | 56 def __init__(self, page_set): |
57 super(GmailPage, self).__init__( | 57 super(GmailPage, self).__init__( |
58 url='https://mail.google.com/mail/', | 58 url='https://mail.google.com/mail/', |
59 page_set=page_set) | 59 page_set=page_set) |
60 | 60 |
61 self.credentials = 'google' | 61 self.credentials = 'google' |
62 | 62 |
63 def RunNavigateSteps(self, action_runner): | 63 def RunNavigateSteps(self, action_runner): |
64 super(GmailPage, self).RunNavigateSteps(action_runner) | 64 super(GmailPage, self).RunNavigateSteps(action_runner) |
65 action_runner.WaitForJavaScriptCondition2( | 65 action_runner.WaitForJavaScriptCondition( |
66 'window.gmonkey !== undefined &&' | 66 'window.gmonkey !== undefined &&' |
67 'document.getElementById("gb") !== null') | 67 'document.getElementById("gb") !== null') |
68 | 68 |
69 | 69 |
70 class GoogleCalendarPage(ToughPinchZoomCasesPage): | 70 class GoogleCalendarPage(ToughPinchZoomCasesPage): |
71 | 71 |
72 """ Why: productivity, top google properties """ | 72 """ Why: productivity, top google properties """ |
73 | 73 |
74 def __init__(self, page_set): | 74 def __init__(self, page_set): |
75 super(GoogleCalendarPage, self).__init__( | 75 super(GoogleCalendarPage, self).__init__( |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 def __init__(self): | 269 def __init__(self): |
270 super(AndroidToughPinchZoomCasesPageSet, self).__init__(7.0) | 270 super(AndroidToughPinchZoomCasesPageSet, self).__init__(7.0) |
271 | 271 |
272 | 272 |
273 class DesktopToughPinchZoomCasesPageSet(ToughPinchZoomCasesPageSet): | 273 class DesktopToughPinchZoomCasesPageSet(ToughPinchZoomCasesPageSet): |
274 | 274 |
275 """ ToughPinchZoomCasesPageSet using the maximum desktop zoom level """ | 275 """ ToughPinchZoomCasesPageSet using the maximum desktop zoom level """ |
276 | 276 |
277 def __init__(self): | 277 def __init__(self): |
278 super(DesktopToughPinchZoomCasesPageSet, self).__init__(4.0) | 278 super(DesktopToughPinchZoomCasesPageSet, self).__init__(4.0) |
OLD | NEW |