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

Unified Diff: test/codegen_test.dart

Issue 1328303002: fix implicit_scope_test and builtin_identifier_test (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: format Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/codegen/language/implicit_scope_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen_test.dart
diff --git a/test/codegen_test.dart b/test/codegen_test.dart
index 70993a6794f52b5cb8cf9aa9659c5bf7dac2fa3f..31133605845a8d6b58603daeaafabfaea6989595 100644
--- a/test/codegen_test.dart
+++ b/test/codegen_test.dart
@@ -121,7 +121,8 @@ main(arguments) {
for (var dir in [null, 'language']) {
group('dartdevc ' + path.join('test', 'codegen', dir), () {
- var outDir = path.join(expectDir, dir);
+ var outDir = new Directory(path.join(expectDir, dir));
+ if (!outDir.existsSync()) outDir.createSync(recursive: true);
var testFiles = _findTests(path.join(inputDir, dir), filePattern);
for (var filePath in testFiles) {
@@ -139,10 +140,10 @@ main(arguments) {
sourceMaps: sourceMaps, closure: closure);
// Write compiler messages to disk.
- new File(path.join(outDir, '$filename.txt'))
+ new File(path.join(outDir.path, '$filename.txt'))
.writeAsStringSync('$compilerMessages');
- var outFile = new File(path.join(outDir, '$filename.js'));
+ var outFile = new File(path.join(outDir.path, '$filename.js'));
expect(outFile.existsSync(), success,
reason: '${outFile.path} was created iff compilation succeeds');
});
« no previous file with comments | « test/codegen/language/implicit_scope_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698