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

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

Issue 14732003: Implement Model-Driven-Views spec for Dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: try upload again 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
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 return call([os.path.join(os.getcwd(), 'dartdomgenerator.py'), 105 result = 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
107 109
108 def http_server(): 110 def http_server():
109 print('Browse tests at ' 111 print('Browse tests at '
110 '\033[94mhttp://localhost:5400/root_build/generated_tests/\033[0m') 112 '\033[94mhttp://localhost:5400/root_build/generated_tests/\033[0m')
111 return call([ 113 return call([
112 utils.DartBinary(), 114 utils.DartBinary(),
113 os.path.join('tools', 'testing', 'dart', 'http_server.dart'), 115 os.path.join('tools', 'testing', 'dart', 'http_server.dart'),
114 '--port=5400', 116 '--port=5400',
115 '--crossOriginPort=5401', 117 '--crossOriginPort=5401',
116 '--network=0.0.0.0', 118 '--network=0.0.0.0',
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 help(); 208 help();
207 success = False 209 success = False
208 break 210 break
209 returncode = commands[command][0]() 211 returncode = commands[command][0]()
210 success = success and not bool(returncode) 212 success = success and not bool(returncode)
211 213
212 sys.exit(not success) 214 sys.exit(not success)
213 215
214 if __name__ == '__main__': 216 if __name__ == '__main__':
215 main() 217 main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698