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

Side by Side Diff: chrome/test/functional/media/media_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: adding title for video and set default track file. 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 test for HTML5 media tag to test track (caption) functionality.
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 tests track (caption) fuctionality. The parameters needed to run this test
11 are passed in the form of environment variables (such as the number of runs).
12 media_perf_runner.py is used for generating these variables
13 (PyAuto does not support direct parameters).
14 """
15 import os
16 import time
17
18 from media_test_base import MediaTestBase
19 from media_test_env_names import MediaTestEnvNames
20 import pyauto_media
21 from ui_perf_test_utils import UIPerfTestUtils
22
23
24 class MediaPlaybackTimeTest(MediaTestBase):
25 """Test class to record playback time."""
26
27 def testHTML5MediaTag(self):
28 """Test the HTML5 media tag."""
29 MediaTestBase.ExecuteTest(self)
30
31 def PostAllRunsProcess(self):
32 """A method to execute after all runs.
33
34 This is an overridden method. Currently, noop.
35 """
36 pass
37
38 def PostEachRunProcess(self, unused_run_counter):
39 """A method to execute after each run.
40
41 This is an overridden method. Currently noop.
42
43 Args:
44 unused_run_counter: counter for each run.
45 """
46 pass
47
48 def GetPlayerHTMLFileName(self):
49 """A method to get the player HTML file name."""
50 return 'media_track.html'
51
52
53 if __name__ == '__main__':
54 pyauto_media.Main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698