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

Side by Side Diff: tools/perf/page_sets/tough_video_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 ToughVideoCasesPage(page_module.Page): 10 class ToughVideoCasesPage(page_module.Page):
(...skipping 28 matching lines...) Expand all
39 'wait_for_ended': True 39 'wait_for_ended': True
40 })) 40 }))
41 41
42 def SeekBeforeAndAfterPlayhead(self, action_runner): 42 def SeekBeforeAndAfterPlayhead(self, action_runner):
43 action_runner.RunAction(PlayAction( 43 action_runner.RunAction(PlayAction(
44 { 44 {
45 'wait_for_playing': True, 45 'wait_for_playing': True,
46 'wait_for_ended': False 46 'wait_for_ended': False
47 })) 47 }))
48 # Wait for 1 second so that we know the play-head is at ~1s. 48 # Wait for 1 second so that we know the play-head is at ~1s.
49 action_runner.RunAction(WaitAction( 49 action_runner.Wait(1)
50 {
51 'seconds': 1
52 }))
53 # Seek to before the play-head location. 50 # Seek to before the play-head location.
54 action_runner.RunAction(SeekAction( 51 action_runner.RunAction(SeekAction(
55 { 52 {
56 'seek_time': '0.5', 53 'seek_time': '0.5',
57 'wait_for_seeked': True, 54 'wait_for_seeked': True,
58 'seek_label': 'seek_warm' 55 'seek_label': 'seek_warm'
59 })) 56 }))
60 # Seek to after the play-head location. 57 # Seek to after the play-head location.
61 action_runner.RunAction(SeekAction( 58 action_runner.RunAction(SeekAction(
62 { 59 {
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 self.AddPage(Page20(self)) 485 self.AddPage(Page20(self))
489 self.AddPage(Page21(self)) 486 self.AddPage(Page21(self))
490 self.AddPage(Page22(self)) 487 self.AddPage(Page22(self))
491 self.AddPage(Page23(self)) 488 self.AddPage(Page23(self))
492 self.AddPage(Page24(self)) 489 self.AddPage(Page24(self))
493 self.AddPage(Page25(self)) 490 self.AddPage(Page25(self))
494 self.AddPage(Page26(self)) 491 self.AddPage(Page26(self))
495 self.AddPage(Page27(self)) 492 self.AddPage(Page27(self))
496 self.AddPage(Page28(self)) 493 self.AddPage(Page28(self))
497 self.AddPage(Page29(self)) 494 self.AddPage(Page29(self))
498
OLDNEW
« no previous file with comments | « tools/perf/page_sets/tough_scheduling_cases.py ('k') | tools/perf/page_sets/tough_webgl_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698