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

Side by Side Diff: chrome/test/functional/media/media_event_track.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #!/usr/bin/python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 """Simple event test for the HTML5 media tag.
7
8 This PyAuto powered script plays media (video or audio) files using the HTML5
9 tag embedded in an HTML file (specified in the GetPlayerHTMLFileName() method)
10 and asserts proper event occurrence relating to track (caption). The parameters
11 needed to run this test are passed in the form of environment variables
12 (such as the number of runs). Media_perf_runner.py is used for generating
13 these variables (PyAuto does not support direct parameters).
14 """
15
16 import os
17 import pyauto_media
18 from media_event_test_base import MediaEventTestBase
19 from media_test_env_names import MediaTestEnvNames
20
21
22 class MediaEventTrackSimpleTest(MediaEventTestBase):
23 """Tests for simple media events."""
24
25 def testHTML5MediaTag(self):
26 """Test the HTML5 media tag."""
27
28 track_filename = os.getenv(MediaTestEnvNames.TRACK_FILE_ENV_NAME, '')
29 # Override the default test when using track is used.
30 # There are two types of events listed here:
31 # 0: event occurrence is 0.
32 # None: event occurrence is more than 1.
33 # TODO(imasaki@chromium.org): uncomment below when we enable events.
34 if track_filename:
35 # self.event_expected_values['cuechange'] = None
36 # self.event_expected_values['enter'] = None
37 # self.event_expected_values['exit'] = None
38 # self.event_expected_values['change'] = None
39 pass
40 MediaEventTestBase.ExecuteTest(self)
41
42
43 if __name__ == '__main__':
44 pyauto_media.Main()
OLDNEW
« no previous file with comments | « chrome/test/functional/media/media_event_test_base.py ('k') | chrome/test/functional/media/media_test_base.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698