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 # 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 Loading... |
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 Loading... |
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 | |
OLD | NEW |