| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 | 4 |
| 5 from page_sets import repeatable_synthesize_scroll_gesture_shared_state | 5 from page_sets import repeatable_synthesize_scroll_gesture_shared_state |
| 6 | 6 |
| 7 from telemetry.page import page as page_module | 7 from telemetry.page import page as page_module |
| 8 from telemetry import story | 8 from telemetry import story |
| 9 | 9 |
| 10 | 10 |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 self.AddStory(AdPage(('http://www.cnn.com/2015/01/09/politics/' | 208 self.AddStory(AdPage(('http://www.cnn.com/2015/01/09/politics/' |
| 209 'nebraska-keystone-pipeline/index.html'), | 209 'nebraska-keystone-pipeline/index.html'), |
| 210 self, scroll=scroll, | 210 self, scroll=scroll, |
| 211 bidirectional_scroll=bidirectional_scroll)) | 211 bidirectional_scroll=bidirectional_scroll)) |
| 212 # Disabled: crbug.com/520509 | 212 # Disabled: crbug.com/520509 |
| 213 #self.AddStory(AdPage('http://time.com/3977891/' | 213 #self.AddStory(AdPage('http://time.com/3977891/' |
| 214 # 'donald-trump-debate-republican/', self, scroll=scroll, | 214 # 'donald-trump-debate-republican/', self, scroll=scroll, |
| 215 # bidirectional_scroll=bidirectional_scroll)) | 215 # bidirectional_scroll=bidirectional_scroll)) |
| 216 self.AddStory(AdPage('http://www.theguardian.com/uk', self, scroll=scroll, | 216 self.AddStory(AdPage('http://www.theguardian.com/uk', self, scroll=scroll, |
| 217 bidirectional_scroll=bidirectional_scroll)) | 217 bidirectional_scroll=bidirectional_scroll)) |
| 218 self.AddStory(AdPage('http://m.tmz.com', self, scroll=scroll, | 218 # Disabled: http://crbug.com/597656 |
| 219 y_scroll_distance_multiplier=0.25, | 219 # self.AddStory(AdPage('http://m.tmz.com', self, scroll=scroll, |
| 220 bidirectional_scroll=bidirectional_scroll)) | 220 # y_scroll_distance_multiplier=0.25, |
| 221 # bidirectional_scroll=bidirectional_scroll)) |
| 221 self.AddStory(AdPage('http://androidpolice.com', self, scroll=scroll, | 222 self.AddStory(AdPage('http://androidpolice.com', self, scroll=scroll, |
| 222 bidirectional_scroll=bidirectional_scroll, | 223 bidirectional_scroll=bidirectional_scroll, |
| 223 wait_for_interactive_or_better=True)) | 224 wait_for_interactive_or_better=True)) |
| 224 | 225 |
| 225 | 226 |
| 226 class ScrollingToughAdCasesPageSet(ToughAdCasesPageSet): | 227 class ScrollingToughAdCasesPageSet(ToughAdCasesPageSet): |
| 227 """Pages for measuring scrolling performance with advertising content.""" | 228 """Pages for measuring scrolling performance with advertising content.""" |
| 228 | 229 |
| 229 def __init__(self): | 230 def __init__(self): |
| 230 super(ScrollingToughAdCasesPageSet, self).__init__( | 231 super(ScrollingToughAdCasesPageSet, self).__init__( |
| 231 scroll=True) | 232 scroll=True) |
| 232 | 233 |
| 233 | 234 |
| 234 class BidirectionallyScrollingToughAdCasesPageSet(ToughAdCasesPageSet): | 235 class BidirectionallyScrollingToughAdCasesPageSet(ToughAdCasesPageSet): |
| 235 """Same as ScrollingToughAdCasesPageSet except we scroll in two directions.""" | 236 """Same as ScrollingToughAdCasesPageSet except we scroll in two directions.""" |
| 236 | 237 |
| 237 def __init__(self): | 238 def __init__(self): |
| 238 super(BidirectionallyScrollingToughAdCasesPageSet, self).__init__( | 239 super(BidirectionallyScrollingToughAdCasesPageSet, self).__init__( |
| 239 bidirectional_scroll=True) | 240 bidirectional_scroll=True) |
| OLD | NEW |