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

Side by Side Diff: chrome/test/functional/quasar/pyauto_quasar.py

Issue 8477044: Introduce Pyauto tests for Quasar (Google Talk Extension). (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 """
7 Setup for Quasar Pyauto tests.
Nirnimesh 2011/11/09 23:54:05 Move this to previous line. (then leave a blank li
wud 2011/11/10 23:35:19 Done, here and elsewhere.
8 Copied from chrome/test/funcational/media/pyauto_media.py.
Nirnimesh 2011/11/09 23:54:05 funcational -> functional
wud 2011/11/10 23:35:19 Done.
9 """
10
11 import os
12 import sys
13 import tempfile
14
15
16 def _SetupPaths():
17 """Setting path to find pyauto_functional.py."""
18 quasar_dir = os.path.abspath(os.path.dirname(__file__))
19 sys.path.append(quasar_dir)
20 sys.path.append(os.path.normpath(os.path.join(quasar_dir, os.pardir)))
21 sys.path.append(os.path.normpath(os.path.join(
Nirnimesh 2011/11/09 23:54:05 You don't need anything below this
wud 2011/11/10 23:35:19 Done.
22 quasar_dir, os.pardir, os.pardir, os.pardir, os.pardir,
23 'third_party', 'psutil')))
24 # Setting PYTHONPATH for reference build.
25 if os.getenv('REFERENCE_BUILD'):
26 reference_build_dir = os.getenv(
27 'REFERENCE_BUILD_DIR',
28 # TODO(imasaki@): Change the following default value.
29 # Default directory is just for testing so the correct directory
30 # must be set in the build script.
31 os.path.join(tempfile.gettempdir(), 'chrome-quasar-test'))
32 sys.path.insert(0, reference_build_dir)
33
34 _SetupPaths()
35
36 import pyauto_functional
37 import pyauto
Nirnimesh 2011/11/09 23:54:05 unused
wud 2011/11/10 23:35:19 Done.
38
39
40 class Main(pyauto_functional.Main):
41 """Main program for running PyAuto quasar tests."""
42
43 def __init__(self):
44 pyauto_functional.Main.__init__(self)
45
46
47 if __name__ == '__main__':
48 Main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698