| 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.core import util | 7 from telemetry.core import util |
| 8 from telemetry.page import page as page_module | 8 from telemetry.page import page as page_module |
| 9 from telemetry import story | 9 from telemetry import story |
| 10 | 10 |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 self.AddStory(AdPage('file://tough_ad_cases/' | 182 self.AddStory(AdPage('file://tough_ad_cases/' |
| 183 'swiffy_webgl_collection.html', | 183 'swiffy_webgl_collection.html', |
| 184 self, make_javascript_deterministic=False, scroll=scroll)) | 184 self, make_javascript_deterministic=False, scroll=scroll)) |
| 185 self.AddStory(AdPage('http://www.latimes.com', self, scroll=scroll, | 185 self.AddStory(AdPage('http://www.latimes.com', self, scroll=scroll, |
| 186 wait_for_interactive_or_better=True)) | 186 wait_for_interactive_or_better=True)) |
| 187 self.AddStory(ForbesAdPage('http://www.forbes.com/sites/parmyolson/' | 187 self.AddStory(ForbesAdPage('http://www.forbes.com/sites/parmyolson/' |
| 188 '2015/07/29/jana-mobile-data-facebook-internet-org/', | 188 '2015/07/29/jana-mobile-data-facebook-internet-org/', |
| 189 self, scroll=scroll)) | 189 self, scroll=scroll)) |
| 190 self.AddStory(AdPage('http://androidcentral.com', self, scroll=scroll, | 190 self.AddStory(AdPage('http://androidcentral.com', self, scroll=scroll, |
| 191 wait_for_interactive_or_better=True)) | 191 wait_for_interactive_or_better=True)) |
| 192 # Disabled: crbug.com/682349 | 192 self.AddStory(AdPage('http://mashable.com', self, scroll=scroll, |
| 193 #self.AddStory(AdPage('http://mashable.com', self, scroll=scroll, | 193 y_scroll_distance_multiplier=0.25)) |
| 194 # y_scroll_distance_multiplier=0.25)) | |
| 195 self.AddStory(AdPage('http://www.androidauthority.com/' | 194 self.AddStory(AdPage('http://www.androidauthority.com/' |
| 196 'reduce-data-use-turn-on-data-compression-in-chrome-630064/', self, | 195 'reduce-data-use-turn-on-data-compression-in-chrome-630064/', self, |
| 197 scroll=scroll)) | 196 scroll=scroll)) |
| 198 self.AddStory(AdPage(('http://www.cnn.com/2015/01/09/politics/' | 197 self.AddStory(AdPage(('http://www.cnn.com/2015/01/09/politics/' |
| 199 'nebraska-keystone-pipeline/index.html'), | 198 'nebraska-keystone-pipeline/index.html'), |
| 200 self, scroll=scroll)) | 199 self, scroll=scroll)) |
| 201 # Disabled: crbug.com/520509 | 200 # Disabled: crbug.com/520509 |
| 202 #self.AddStory(AdPage('http://time.com/3977891/' | 201 #self.AddStory(AdPage('http://time.com/3977891/' |
| 203 # 'donald-trump-debate-republican/', self, scroll=scroll)) | 202 # 'donald-trump-debate-republican/', self, scroll=scroll)) |
| 204 self.AddStory(AdPage('http://www.theguardian.com/uk', self, scroll=scroll)) | 203 self.AddStory(AdPage('http://www.theguardian.com/uk', self, scroll=scroll)) |
| 205 # Disabled: http://crbug.com/597656 | 204 # Disabled: http://crbug.com/597656 |
| 206 # self.AddStory(AdPage('http://m.tmz.com', self, scroll=scroll, | 205 # self.AddStory(AdPage('http://m.tmz.com', self, scroll=scroll, |
| 207 # y_scroll_distance_multiplier=0.25)) | 206 # y_scroll_distance_multiplier=0.25)) |
| 208 self.AddStory(AdPage('http://androidpolice.com', self, scroll=scroll, | 207 self.AddStory(AdPage('http://androidpolice.com', self, scroll=scroll, |
| 209 wait_for_interactive_or_better=True)) | 208 wait_for_interactive_or_better=True)) |
| 210 | 209 |
| 211 | 210 |
| 212 class ScrollingToughAdCasesPageSet(ToughAdCasesPageSet): | 211 class ScrollingToughAdCasesPageSet(ToughAdCasesPageSet): |
| 213 """Pages for measuring scrolling performance with advertising content.""" | 212 """Pages for measuring scrolling performance with advertising content.""" |
| 214 | 213 |
| 215 def __init__(self): | 214 def __init__(self): |
| 216 super(ScrollingToughAdCasesPageSet, self).__init__( | 215 super(ScrollingToughAdCasesPageSet, self).__init__( |
| 217 scroll=True) | 216 scroll=True) |
| OLD | NEW |