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 page_set as page_set_module | 5 from telemetry.page import page_set as page_set_module |
6 | 6 |
7 | 7 |
8 class ToughSchedulingCasesPage(page_module.Page): | 8 class ToughSchedulingCasesPage(page_module.Page): |
9 | 9 |
10 def __init__(self, url, page_set): | 10 def __init__(self, url, page_set): |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 | 242 |
243 class Page16(ToughSchedulingCasesPage): | 243 class Page16(ToughSchedulingCasesPage): |
244 | 244 |
245 """ Why: Test a requestAnimationFrame handler with a heavy first frame """ | 245 """ Why: Test a requestAnimationFrame handler with a heavy first frame """ |
246 | 246 |
247 def __init__(self, page_set): | 247 def __init__(self, page_set): |
248 super(Page16, self).__init__( | 248 super(Page16, self).__init__( |
249 url='file://tough_scheduling_cases/raf.html?heavy_first_frame', | 249 url='file://tough_scheduling_cases/raf.html?heavy_first_frame', |
250 page_set=page_set) | 250 page_set=page_set) |
251 | 251 |
252 self.synthetic_delays = {'cc.BeginMainFrame': {'target_duration': 0.15}} | 252 self.synthetic_delays = {'cc.BeginMainFrame': {'target_duration': 0.15, |
| 253 'mode': 'oneshot'}} |
253 | 254 |
254 | 255 |
255 class Page17(ToughSchedulingCasesPage): | 256 class Page17(ToughSchedulingCasesPage): |
256 | 257 |
257 """ Why: Medium stress test for the scheduler """ | 258 """ Why: Medium stress test for the scheduler """ |
258 | 259 |
259 def __init__(self, page_set): | 260 def __init__(self, page_set): |
260 super(Page17, self).__init__( | 261 super(Page17, self).__init__( |
261 url='file://tough_scheduling_cases/raf_touch_animation.html?medium', | 262 url='file://tough_scheduling_cases/raf_touch_animation.html?medium', |
262 page_set=page_set) | 263 page_set=page_set) |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 # Why: Scroll bounce with slow handler on desktop, blocks only once until | 459 # Why: Scroll bounce with slow handler on desktop, blocks only once until |
459 # ACK timeout. | 460 # ACK timeout. |
460 self.AddPage(EmptyTouchHandlerPage( | 461 self.AddPage(EmptyTouchHandlerPage( |
461 name='bounce_desktop_slow_handler', | 462 name='bounce_desktop_slow_handler', |
462 desktop=True, | 463 desktop=True, |
463 slow_handler=True, | 464 slow_handler=True, |
464 bounce=True, | 465 bounce=True, |
465 page_set=self)) | 466 page_set=self)) |
466 # Why: For measuring the latency of scroll-synchronized effects. | 467 # Why: For measuring the latency of scroll-synchronized effects. |
467 self.AddPage(SynchronizedScrollOffsetPage(page_set=self)) | 468 self.AddPage(SynchronizedScrollOffsetPage(page_set=self)) |
OLD | NEW |