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

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

Issue 2848723003: Remove support for canvas element in tough_video_cases. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | tools/perf/page_sets/tough_video_cases/video.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 'smpte_3840x2160_60fps_vp9.webm'), 379 'smpte_3840x2160_60fps_vp9.webm'),
380 page_set=page_set, 380 page_set=page_set,
381 tags=['is_4k', 'vp9', 'video_only']) 381 tags=['is_4k', 'vp9', 'video_only'])
382 382
383 self.add_browser_metrics = True 383 self.add_browser_metrics = True
384 384
385 def RunPageInteractions(self, action_runner): 385 def RunPageInteractions(self, action_runner):
386 self.SeekBeforeAndAfterPlayhead(action_runner, 386 self.SeekBeforeAndAfterPlayhead(action_runner,
387 action_timeout_in_seconds=120) 387 action_timeout_in_seconds=120)
388 388
389 class Page37(ToughVideoCasesPage):
390
391 def __init__(self, page_set):
392 super(Page37, self).__init__(
393 url=('file://tough_video_cases/video.html?src=crowd1080_vp9.webm&canvas='
394 'true'),
395 page_set=page_set,
396 tags=['vp9', 'video_only'])
397
398 self.add_browser_metrics = True
399
400 def RunPageInteractions(self, action_runner):
401 self.PlayAction(action_runner)
402
403 class Page38(ToughVideoCasesPage):
404
405 def __init__(self, page_set):
406 super(Page38, self).__init__(
407 url='file://tough_video_cases/video.html?src=tulip2.mp4&canvas=true',
408 page_set=page_set,
409 tags=['h264', 'aac', 'audio_video'])
410
411 self.add_browser_metrics = True
412
413 def RunPageInteractions(self, action_runner):
414 self.SeekBeforeAndAfterPlayhead(action_runner)
415
416 class Page39(ToughVideoCasesPage):
417
418 def __init__(self, page_set):
419 super(Page39, self).__init__(
420 url=('file://tough_video_cases/video.html?src=garden2_10s.webm&canvas='
421 'true'),
422 page_set=page_set,
423 tags=['is_4k', 'vp8', 'vorbis', 'audio_video'])
424
425 self.add_browser_metrics = True
426
427 def RunPageInteractions(self, action_runner):
428 self.PlayAction(action_runner)
429 389
430 class ToughVideoCasesPageSet(story.StorySet): 390 class ToughVideoCasesPageSet(story.StorySet):
431 """ 391 """
432 Description: Video Stack Perf pages that report time_to_play and many other 392 Description: Video Stack Perf pages that report time_to_play and many other
433 media-specific and generic metrics. 393 media-specific and generic metrics.
434 """ 394 """
435 def __init__(self): 395 def __init__(self):
436 super(ToughVideoCasesPageSet, self).__init__( 396 super(ToughVideoCasesPageSet, self).__init__(
437 cloud_storage_bucket=story.PARTNER_BUCKET) 397 cloud_storage_bucket=story.PARTNER_BUCKET)
438 # TODO(crouleau): Pages 36 and 38 are in ToughVideoCasesPageSet even though 398 # TODO(crouleau): Page 36 is in ToughVideoCasesPageSet even though
439 # they both report seek time instead of time_to_play. 399 # it both reports seek time instead of time_to_play.
440 # This may be a non-issue because we plan to merge these two page sets back 400 # This may be a non-issue because we plan to merge these two page sets back
441 # together and use tags to allow teams to filter which pages they want. 401 # together and use tags to allow teams to filter which pages they want.
442 402
443 self.AddStory(Page2(self)) 403 self.AddStory(Page2(self))
444 self.AddStory(Page4(self)) 404 self.AddStory(Page4(self))
445 self.AddStory(Page7(self)) 405 self.AddStory(Page7(self))
446 self.AddStory(Page8(self)) 406 self.AddStory(Page8(self))
447 self.AddStory(Page11(self)) 407 self.AddStory(Page11(self))
448 self.AddStory(Page12(self)) 408 self.AddStory(Page12(self))
449 self.AddStory(Page13(self)) 409 self.AddStory(Page13(self))
450 self.AddStory(Page14(self)) 410 self.AddStory(Page14(self))
451 self.AddStory(Page15(self)) 411 self.AddStory(Page15(self))
452 self.AddStory(Page16(self)) 412 self.AddStory(Page16(self))
453 self.AddStory(Page17(self)) 413 self.AddStory(Page17(self))
454 self.AddStory(Page30(self)) 414 self.AddStory(Page30(self))
455 self.AddStory(Page32(self)) 415 self.AddStory(Page32(self))
456 self.AddStory(Page34(self)) 416 self.AddStory(Page34(self))
457 self.AddStory(Page36(self)) 417 self.AddStory(Page36(self))
458 self.AddStory(Page37(self))
459 self.AddStory(Page38(self))
460 self.AddStory(Page39(self))
461 418
462 419
463 class ToughVideoCasesExtraPageSet(story.StorySet): 420 class ToughVideoCasesExtraPageSet(story.StorySet):
464 """ 421 """
465 Description: Video Stack Perf pages that only report seek time. 422 Description: Video Stack Perf pages that only report seek time.
466 """ 423 """
467 def __init__(self): 424 def __init__(self):
468 super(ToughVideoCasesExtraPageSet, self).__init__( 425 super(ToughVideoCasesExtraPageSet, self).__init__(
469 cloud_storage_bucket=story.PARTNER_BUCKET) 426 cloud_storage_bucket=story.PARTNER_BUCKET)
470 427
471 self.AddStory(Page19(self)) 428 self.AddStory(Page19(self))
472 self.AddStory(Page20(self)) 429 self.AddStory(Page20(self))
473 self.AddStory(Page23(self)) 430 self.AddStory(Page23(self))
474 self.AddStory(Page24(self)) 431 self.AddStory(Page24(self))
475 self.AddStory(Page25(self)) 432 self.AddStory(Page25(self))
476 self.AddStory(Page26(self)) 433 self.AddStory(Page26(self))
477 self.AddStory(Page31(self)) 434 self.AddStory(Page31(self))
478 self.AddStory(Page33(self)) 435 self.AddStory(Page33(self))
479 self.AddStory(Page35(self)) 436 self.AddStory(Page35(self))
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/tough_video_cases/video.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698