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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 url='http://espn.go.com/nba', | 184 url='http://espn.go.com/nba', |
185 page_set=page_set, name='ESPN') | 185 page_set=page_set, name='ESPN') |
186 | 186 |
187 | 187 |
188 class WeatherDotComPage(ToughPinchZoomCasesPage): | 188 class WeatherDotComPage(ToughPinchZoomCasesPage): |
189 | 189 |
190 """ Why: #7 (Alexa news); #27 total time spent,Picked interesting page """ | 190 """ Why: #7 (Alexa news); #27 total time spent,Picked interesting page """ |
191 | 191 |
192 def __init__(self, page_set): | 192 def __init__(self, page_set): |
193 super(WeatherDotComPage, self).__init__( | 193 super(WeatherDotComPage, self).__init__( |
194 # pylint: disable=C0301 | 194 # pylint: disable=line-too-long |
195 url='http://www.weather.com/weather/right-now/Mountain+View+CA+94043', | 195 url='http://www.weather.com/weather/right-now/Mountain+View+CA+94043', |
196 page_set=page_set, name='Weather.com') | 196 page_set=page_set, name='Weather.com') |
197 | 197 |
198 | 198 |
199 class YahooGamePage(ToughPinchZoomCasesPage): | 199 class YahooGamePage(ToughPinchZoomCasesPage): |
200 | 200 |
201 """ Why: #1 games according to Alexa (with actual games in it) """ | 201 """ Why: #1 games according to Alexa (with actual games in it) """ |
202 | 202 |
203 def __init__(self, page_set): | 203 def __init__(self, page_set): |
204 super(YahooGamePage, self).__init__( | 204 super(YahooGamePage, self).__init__( |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 def __init__(self): | 270 def __init__(self): |
271 super(AndroidToughPinchZoomCasesPageSet, self).__init__(7.0) | 271 super(AndroidToughPinchZoomCasesPageSet, self).__init__(7.0) |
272 | 272 |
273 | 273 |
274 class DesktopToughPinchZoomCasesPageSet(ToughPinchZoomCasesPageSet): | 274 class DesktopToughPinchZoomCasesPageSet(ToughPinchZoomCasesPageSet): |
275 | 275 |
276 """ ToughPinchZoomCasesPageSet using the maximum desktop zoom level """ | 276 """ ToughPinchZoomCasesPageSet using the maximum desktop zoom level """ |
277 | 277 |
278 def __init__(self): | 278 def __init__(self): |
279 super(DesktopToughPinchZoomCasesPageSet, self).__init__(4.0) | 279 super(DesktopToughPinchZoomCasesPageSet, self).__init__(4.0) |
OLD | NEW |