Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: tools/perf/page_sets/tough_scheduling_cases.py

Issue 321563003: Add Wait* API to ActionRunner to wrap over WaitAction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing to head. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 # pylint: disable=W0401,W0614 4 # pylint: disable=W0401,W0614
5 from telemetry.page.actions.all_page_actions import * 5 from telemetry.page.actions.all_page_actions import *
6 from telemetry.page import page as page_module 6 from telemetry.page import page as page_module
7 from telemetry.page import page_set as page_set_module 7 from telemetry.page import page_set as page_set_module
8 8
9 9
10 class ToughSchedulingCasesPage(page_module.Page): 10 class ToughSchedulingCasesPage(page_module.Page):
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 class Page19(ToughSchedulingCasesPage): 284 class Page19(ToughSchedulingCasesPage):
285 285
286 """ Why: Both main and impl thread animating concurrently """ 286 """ Why: Both main and impl thread animating concurrently """
287 287
288 def __init__(self, page_set): 288 def __init__(self, page_set):
289 super(Page19, self).__init__( 289 super(Page19, self).__init__(
290 url='file://tough_scheduling_cases/split_animation.html', 290 url='file://tough_scheduling_cases/split_animation.html',
291 page_set=page_set) 291 page_set=page_set)
292 292
293 def RunSmoothness(self, action_runner): 293 def RunSmoothness(self, action_runner):
294 action_runner.RunAction(WaitAction( 294 action_runner.Wait(3)
295 {
296 "seconds": 3
297 }))
298 295
299 class Page20(ToughSchedulingCasesPage): 296 class Page20(ToughSchedulingCasesPage):
300 297
301 """ Why: Simple JS touch dragging """ 298 """ Why: Simple JS touch dragging """
302 299
303 def __init__(self, page_set): 300 def __init__(self, page_set):
304 super(Page20, self).__init__( 301 super(Page20, self).__init__(
305 url='file://tough_scheduling_cases/simple_touch_drag.html', 302 url='file://tough_scheduling_cases/simple_touch_drag.html',
306 page_set=page_set) 303 page_set=page_set)
307 304
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 bounce=True, 438 bounce=True,
442 page_set=self)) 439 page_set=self))
443 # Why: Scroll bounce with slow handler on desktop, blocks only once until 440 # Why: Scroll bounce with slow handler on desktop, blocks only once until
444 # ACK timeout. 441 # ACK timeout.
445 self.AddPage(EmptyTouchHandlerPage( 442 self.AddPage(EmptyTouchHandlerPage(
446 name='bounce_desktop_slow_handler', 443 name='bounce_desktop_slow_handler',
447 desktop=True, 444 desktop=True,
448 slow_handler=True, 445 slow_handler=True,
449 bounce=True, 446 bounce=True,
450 page_set=self)) 447 page_set=self))
451
OLDNEW
« no previous file with comments | « tools/perf/page_sets/tough_pinch_zoom_cases.py ('k') | tools/perf/page_sets/tough_video_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698