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

Unified Diff: chrome/test/functional/media/media_event_test_base.py

Issue 7003131: Adding HTML5 track(caption) test case in PyAuto media functional tests. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Add basic media track event test in media functional test. Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/functional/PYAUTO_TESTS ('k') | chrome/test/functional/media/media_event_track.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/media/media_event_test_base.py
diff --git a/chrome/test/functional/media/media_event_test_base.py b/chrome/test/functional/media/media_event_test_base.py
index a9f4e6a764a236c9df51f3d9312049389bc36297..5484c0c963604e0bc99b95d496474248ed3db49c 100755
--- a/chrome/test/functional/media/media_event_test_base.py
+++ b/chrome/test/functional/media/media_event_test_base.py
@@ -18,9 +18,11 @@ class MediaEventTestBase(MediaTestBase):
# This is a list of events to test during media playback.
EVENT_LIST = ['abort', 'canplay', 'canplaythrough', 'durationchange',
'emptied', 'ended', 'error', 'load', 'loadeddata',
- 'loadedmetadata', 'loadstart', 'pause', 'play', 'playing',
+ 'loadedmetadata', 'loadstart', 'pause', 'play', 'playing',
'progress', 'ratechange', 'seeked', 'seeking', 'stalled',
- 'suspend', 'timeupdate', 'volumechange', 'waiting']
+ 'suspend', 'timeupdate', 'volumechange', 'waiting',
+ # Track related events
+ 'cuechange', 'enter', 'exit', 'change']
# These are event types that are not 1 at the end of video playback.
# There are two types of events listed here:
# 0: event occurrence is 0.
@@ -37,7 +39,11 @@ class MediaEventTestBase(MediaTestBase):
'seeking': 0,
'seeked': 0,
'volumechange': 0,
- 'timeupdate': None}
+ 'timeupdate': None,
+ 'cuechange': 0,
+ 'enter': 0,
+ 'exit': 0,
+ 'change': 0}
def _GetEventLog(self):
"""Get the event log from the DOM tree that is produced by player.html.
« no previous file with comments | « chrome/test/functional/PYAUTO_TESTS ('k') | chrome/test/functional/media/media_event_track.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698