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

Side by Side Diff: samples/third_party/dromaeo/generate_dart2js_tests.py

Issue 10510010: Get performance tests running without frog in the SDK. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
« no previous file with comments | « no previous file | tools/testing/perf_testing/run_perf_tests.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 import glob 3 import glob
4 import os 4 import os
5 import os.path 5 import os.path
6 import platform 6 import platform
7 import re 7 import re
8 import subprocess 8 import subprocess
9 import sys 9 import sys
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 outname = os.path.join(outdir, jsname) 63 outname = os.path.join(outdir, jsname)
64 Compile(dartname, outname, compiler) 64 Compile(dartname, outname, compiler)
65 script = '<script type="text/javascript" src="%s">' % jsname 65 script = '<script type="text/javascript" src="%s">' % jsname
66 outfile.write(re.sub(pattern, script, line)) 66 outfile.write(re.sub(pattern, script, line))
67 else: 67 else:
68 outfile.write(line) 68 outfile.write(line)
69 69
70 if head == 'tests': 70 if head == 'tests':
71 os.chdir('..') 71 os.chdir('..')
72 72
73 # Frog compile individual dom and html tests into tests/frog. 73 # Compile individual dom and html tests.
74 tests = glob.glob('tests/dom-*-*.html') 74 tests = glob.glob('tests/dom-*-*.html')
75 75
76 for test in tests: 76 for test in tests:
77 HtmlConvert(test, 'frog')
78 HtmlConvert(test, 'dart2js') 77 HtmlConvert(test, 'dart2js')
79 78
80 # Compile driver to index-js.html. 79 # Compile driver to index-js.html.
81 HtmlConvert('index.html', 'dart2js') 80 HtmlConvert('index.html', 'dart2js')
OLDNEW
« no previous file with comments | « no previous file | tools/testing/perf_testing/run_perf_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698