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

Side by Side Diff: test/codegen_test.dart

Issue 1096583002: Reifier hookup (Closed) Base URL: git@github.com:dart-lang/dart-dev-compiler.git@master
Patch Set: Address comments Created 5 years, 8 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /// Tests code generation. 5 /// Tests code generation.
6 /// Runs Dart Dev Compiler on all input in the `codegen` directory and checks 6 /// Runs Dart Dev Compiler on all input in the `codegen` directory and checks
7 /// that the output is what we expected. 7 /// that the output is what we expected.
8 library dev_compiler.test.codegen_test; 8 library dev_compiler.test.codegen_test;
9 9
10 import 'dart:io'; 10 import 'dart:io';
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 .map((f) => f.path) 61 .map((f) => f.path)
62 .where((p) => p.endsWith('.dart') && filePattern.hasMatch(p)); 62 .where((p) => p.endsWith('.dart') && filePattern.hasMatch(p));
63 63
64 compile(String entryPoint, String sdkPath, {bool checkSdk: false, 64 compile(String entryPoint, String sdkPath, {bool checkSdk: false,
65 bool serverMode: false, bool sourceMaps: false, String subDir}) { 65 bool serverMode: false, bool sourceMaps: false, String subDir}) {
66 // TODO(jmesserly): add a way to specify flags in the test file, so 66 // TODO(jmesserly): add a way to specify flags in the test file, so
67 // they're more self-contained. 67 // they're more self-contained.
68 var runtimeDir = path.join( 68 var runtimeDir = path.join(
69 path.dirname(path.dirname(Platform.script.path)), 'lib', 'runtime'); 69 path.dirname(path.dirname(Platform.script.path)), 'lib', 'runtime');
70 var options = new CompilerOptions( 70 var options = new CompilerOptions(
71 allowConstCasts: !dartGen,
71 outputDir: subDir == null ? actualDir : path.join(actualDir, subDir), 72 outputDir: subDir == null ? actualDir : path.join(actualDir, subDir),
72 useColors: false, 73 useColors: false,
73 outputDart: dartGen, 74 outputDart: dartGen,
74 formatOutput: dartGen, 75 formatOutput: dartGen,
75 emitSourceMaps: sourceMaps, 76 emitSourceMaps: sourceMaps,
76 forceCompile: checkSdk, 77 forceCompile: checkSdk,
77 cheapTestFormat: checkSdk, 78 cheapTestFormat: checkSdk,
78 checkSdk: checkSdk, 79 checkSdk: checkSdk,
79 entryPointFile: entryPoint, 80 entryPointFile: entryPoint,
80 dartSdkPath: sdkPath, 81 dartSdkPath: sdkPath,
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 print('[AnalysisEngine] error $message $exception'); 281 print('[AnalysisEngine] error $message $exception');
281 } 282 }
282 283
283 @override void logError2(String message, Object exception) { 284 @override void logError2(String message, Object exception) {
284 print('[AnalysisEngine] error $message $exception'); 285 print('[AnalysisEngine] error $message $exception');
285 } 286 }
286 287
287 void logInformation(String message, [CaughtException exception]) {} 288 void logInformation(String message, [CaughtException exception]) {}
288 void logInformation2(String message, Object exception) {} 289 void logInformation2(String message, Object exception) {}
289 } 290 }
OLDNEW
« no previous file with comments | « test/codegen/expect/sunflower/sunflower.js ('k') | test/dart_codegen/expect/_internal/iterable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698