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

Side by Side Diff: generate_dartvm_layout_tests.py

Issue 12224040: Make layout tests use the test_controller.js file under 'lib' (filed was copied (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/tools
Patch Set: Created 7 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2011 Google Inc. All Rights Reserved. 3 # Copyright 2011 Google Inc. All Rights Reserved.
4 4
5 import fnmatch 5 import fnmatch
6 import os 6 import os
7 import sys 7 import sys
8 8
9 9
10 TESTS_DIR = os.path.join('third_party', 'WebKit', 'LayoutTests', 'dart', 'dom') 10 TESTS_DIR = os.path.join('third_party', 'WebKit', 'LayoutTests', 'dart', 'dom')
11 TEST_CONTROLLER_FILE = os.path.join('dart', 'client', 'testing', 'unittest', 11 TEST_CONTROLLER_FILE = os.path.join('dart', 'client', 'testing', 'unittest',
12 'test_controller.js') 12 'lib', 'test_controller.js')
13 13
14 SCRIPT_TAG = '<script type="application/%s" src="%s"></script>\n' 14 SCRIPT_TAG = '<script type="application/%s" src="%s"></script>\n'
15 15
16 16
17 def main(): 17 def main():
18 script_name = os.path.basename(sys.argv[0]) 18 script_name = os.path.basename(sys.argv[0])
19 srcpath = os.path.join(os.path.dirname(sys.argv[0]), '..') 19 srcpath = os.path.join(os.path.dirname(sys.argv[0]), '..')
20 test_controller_file = os.path.join(srcpath, TEST_CONTROLLER_FILE) 20 test_controller_file = os.path.join(srcpath, TEST_CONTROLLER_FILE)
21 21
22 for root, dirnames, filenames in os.walk(os.path.join(srcpath, TESTS_DIR)): 22 for root, dirnames, filenames in os.walk(os.path.join(srcpath, TESTS_DIR)):
(...skipping 12 matching lines...) Expand all
35 f.close() 35 f.close()
36 36
37 37
38 if __name__ == '__main__': 38 if __name__ == '__main__':
39 try: 39 try:
40 main() 40 main()
41 sys.exit(0) 41 sys.exit(0)
42 except StandardError as e: 42 except StandardError as e:
43 print 'Fail: ' + str(e) 43 print 'Fail: ' + str(e)
44 sys.exit(1) 44 sys.exit(1)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698