| 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 import story | 5 from telemetry import story |
| 6 | 6 |
| 7 _PAGE_TAGS_LIST = [ | 7 _PAGE_TAGS_LIST = [ |
| 8 # Audio codecs: | 8 # Audio codecs: |
| 9 'pcm', | 9 'pcm', |
| 10 'mp3', | 10 'mp3', |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 url='file://tough_video_cases/video.html?src=crowd720_vp9.webm', | 365 url='file://tough_video_cases/video.html?src=crowd720_vp9.webm', |
| 366 page_set=page_set, | 366 page_set=page_set, |
| 367 tags=['vp9', 'video_only', 'normal_play']) | 367 tags=['vp9', 'video_only', 'normal_play']) |
| 368 | 368 |
| 369 self.add_browser_metrics = True | 369 self.add_browser_metrics = True |
| 370 | 370 |
| 371 def RunPageInteractions(self, action_runner): | 371 def RunPageInteractions(self, action_runner): |
| 372 self.PlayAction(action_runner) | 372 self.PlayAction(action_runner) |
| 373 | 373 |
| 374 | 374 |
| 375 class Page35(ToughVideoCasesPage): | |
| 376 | |
| 377 def __init__(self, page_set): | |
| 378 super(Page35, self).__init__( | |
| 379 url='file://tough_video_cases/video.html?src=crowd720_vp9.webm&seek', | |
| 380 page_set=page_set, | |
| 381 tags=['vp9', 'video_only', 'seek']) | |
| 382 | |
| 383 self.skip_basic_metrics = True | |
| 384 | |
| 385 def RunPageInteractions(self, action_runner): | |
| 386 self.SeekBeforeAndAfterPlayhead(action_runner) | |
| 387 | |
| 388 | |
| 389 class Page36(ToughVideoCasesPage): | 375 class Page36(ToughVideoCasesPage): |
| 390 | 376 |
| 391 def __init__(self, page_set): | 377 def __init__(self, page_set): |
| 392 super(Page36, self).__init__( | 378 super(Page36, self).__init__( |
| 393 url=('file://tough_video_cases/video.html?src=' | 379 url=('file://tough_video_cases/video.html?src=' |
| 394 'smpte_3840x2160_60fps_vp9.webm&seek'), | 380 'smpte_3840x2160_60fps_vp9.webm&seek'), |
| 395 page_set=page_set, | 381 page_set=page_set, |
| 396 tags=['is_4k', 'vp9', 'video_only', 'seek']) | 382 tags=['is_4k', 'vp9', 'video_only', 'seek']) |
| 397 | 383 |
| 398 self.add_browser_metrics = True | 384 self.add_browser_metrics = True |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 | 418 |
| 433 # Seek tests: | 419 # Seek tests: |
| 434 self.AddStory(Page19(self)) | 420 self.AddStory(Page19(self)) |
| 435 self.AddStory(Page20(self)) | 421 self.AddStory(Page20(self)) |
| 436 self.AddStory(Page23(self)) | 422 self.AddStory(Page23(self)) |
| 437 self.AddStory(Page24(self)) | 423 self.AddStory(Page24(self)) |
| 438 self.AddStory(Page25(self)) | 424 self.AddStory(Page25(self)) |
| 439 self.AddStory(Page26(self)) | 425 self.AddStory(Page26(self)) |
| 440 self.AddStory(Page31(self)) | 426 self.AddStory(Page31(self)) |
| 441 self.AddStory(Page33(self)) | 427 self.AddStory(Page33(self)) |
| 442 self.AddStory(Page35(self)) | |
| 443 self.AddStory(Page36(self)) | 428 self.AddStory(Page36(self)) |
| OLD | NEW |