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

Side by Side Diff: tools/dom/dom.py

Issue 14908005: "Reverting 22561" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 | « tools/create_sdk.py ('k') | tools/dom/scripts/dartmetadata.py » ('j') | 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/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 # A script which makes it easy to execute common DOM-related tasks 7 # A script which makes it easy to execute common DOM-related tasks
8 8
9 import os 9 import os
10 import subprocess 10 import subprocess
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 '-o%s' % out_file 95 '-o%s' % out_file
96 ] 96 ]
97 if checked: 97 if checked:
98 args.append('--checked') 98 args.append('--checked')
99 99
100 call(args) 100 call(args)
101 return out_file 101 return out_file
102 102
103 def gen(): 103 def gen():
104 os.chdir(os.path.join('tools', 'dom', 'scripts')) 104 os.chdir(os.path.join('tools', 'dom', 'scripts'))
105 result = call([os.path.join(os.getcwd(), 'dartdomgenerator.py'), 105 return call([os.path.join(os.getcwd(), 'dartdomgenerator.py'),
106 '--rebuild', '--parallel', '--systems=htmldart2js,htmldartium']) 106 '--rebuild', '--parallel', '--systems=htmldart2js,htmldartium'])
107 os.chdir(os.path.join('..', '..', '..'))
108 return result
109 107
110 def http_server(): 108 def http_server():
111 print('Browse tests at ' 109 print('Browse tests at '
112 '\033[94mhttp://localhost:5400/root_build/generated_tests/\033[0m') 110 '\033[94mhttp://localhost:5400/root_build/generated_tests/\033[0m')
113 return call([ 111 return call([
114 utils.DartBinary(), 112 utils.DartBinary(),
115 os.path.join('tools', 'testing', 'dart', 'http_server.dart'), 113 os.path.join('tools', 'testing', 'dart', 'http_server.dart'),
116 '--port=5400', 114 '--port=5400',
117 '--crossOriginPort=5401', 115 '--crossOriginPort=5401',
118 '--network=0.0.0.0', 116 '--network=0.0.0.0',
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 help(); 206 help();
209 success = False 207 success = False
210 break 208 break
211 returncode = commands[command][0]() 209 returncode = commands[command][0]()
212 success = success and not bool(returncode) 210 success = success and not bool(returncode)
213 211
214 sys.exit(not success) 212 sys.exit(not success)
215 213
216 if __name__ == '__main__': 214 if __name__ == '__main__':
217 main() 215 main()
OLDNEW
« no previous file with comments | « tools/create_sdk.py ('k') | tools/dom/scripts/dartmetadata.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698