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

Side by Side Diff: chrome/test/functional/media/media_test_env_names.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
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 6
7 class MediaTestEnvNames: 7 class MediaTestEnvNames:
8 """Class that contains all environment names used in media tests. 8 """Class that contains all environment names used in media tests.
9 9
10 Since PyAuto does not support commandline arguments, we have to rely on 10 Since PyAuto does not support commandline arguments, we have to rely on
11 environment variables. The following are the names of the environment 11 environment variables. The following are the names of the environment
12 variables that are used in chrome/src/test/functional/media_test_runner.py 12 variables that are used in chrome/src/test/functional/media_test_runner.py
13 and media tests (subclasses of MediaTestBase in 13 and media tests (subclasses of MediaTestBase in
14 chrome/src/test/functional/media_test_base.py) 14 chrome/src/test/functional/media_test_base.py)
15 """ 15 """
16 # PLAYER_HTML is a HTML file that contains media tag and other 16 # PLAYER_HTML is a HTML file that contains media tag and other
17 # JavaScript code for running the test. 17 # JavaScript code for running the test.
18 # Use this to indicate its URL. 18 # Use this to indicate its URL.
19 PLAYER_HTML_URL_ENV_NAME = 'PLAYER_HTML_URL' 19 PLAYER_HTML_URL_ENV_NAME = 'PLAYER_HTML_URL'
20 20
21 # Display the result output in compact form (e.g., "local", "remote"). 21 # Display the result output in compact form (e.g., "local", "remote").
22 PLAYER_HTML_URL_NICKNAME_ENV_NAME = 'PLAYER_HTML_URL_NICKNAME' 22 PLAYER_HTML_URL_NICKNAME_ENV_NAME = 'PLAYER_HTML_URL_NICKNAME'
23 23
24 # Use this when you want to add extra information in the result output. 24 # Use this when you want to add extra information in the result output.
25 EXTRA_NICKNAME_ENV_NAME = 'EXTRA_NICKNAME' 25 EXTRA_NICKNAME_ENV_NAME = 'EXTRA_NICKNAME'
26 26
27 # Define this environment variable when you do not want to report 27 # Define this environment variable when you do not want to report
28 # the first result output. First result includes time to start up the browser. 28 # the first result output. First result includes time to start up the
29 # browser.
29 REMOVE_FIRST_RESULT_ENV_NAME = 'REMOVE_FIRST_RESULT' 30 REMOVE_FIRST_RESULT_ENV_NAME = 'REMOVE_FIRST_RESULT'
30 31
31 # Add t=Data() parameter in query string to disable media cache 32 # Add t=Data() parameter in query string to disable media cache
32 # if this environment is defined. 33 # if this environment is defined.
33 ADD_T_PARAMETER_ENV_NAME = 'ADD_T_PARAMETER' 34 ADD_T_PARAMETER_ENV_NAME = 'ADD_T_PARAMETER'
34 35
35 # Define the number of tries. 36 # Define the number of tries.
36 N_RUNS_ENV_NAME = 'N_RUNS' 37 N_RUNS_ENV_NAME = 'N_RUNS'
37 38
38 # Define the tag name in HTML (either video or audio). 39 # Define the tag name in HTML (either video or audio).
(...skipping 12 matching lines...) Expand all
51 TEST_SCENARIO_FILE_ENV_NAME = 'TEST_SCENARIO_FILE' 52 TEST_SCENARIO_FILE_ENV_NAME = 'TEST_SCENARIO_FILE'
52 53
53 # Define the test scenario, which contains operations during tests. 54 # Define the test scenario, which contains operations during tests.
54 TEST_SCENARIO_ENV_NAME = 'TEST_SCENARIO' 55 TEST_SCENARIO_ENV_NAME = 'TEST_SCENARIO'
55 56
56 # Define this environment variable if we want to run test using binaries of 57 # Define this environment variable if we want to run test using binaries of
57 # reference build, otherwise do not define this variable. 58 # reference build, otherwise do not define this variable.
58 REFERENCE_BUILD_ENV_NAME = 'REFERENCE_BUILD' 59 REFERENCE_BUILD_ENV_NAME = 'REFERENCE_BUILD'
59 60
60 # Define the path to the directory that contains binaries of reference build. 61 # Define the path to the directory that contains binaries of reference build.
61 REFERENCE_BUILD_DIR_ENV_NAME = 'REFERENCE_BUILD_DIR' 62 REFERENCE_BUILD_DIR_ENV_NAME = 'REFERENCE_BUILD_DIR'
63
64 # Define track(caption) file.
65 TRACK_FILE_ENV_NAME = 'TRACK_FILE'
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698