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

Side by Side Diff: test/codegen_test.dart

Issue 970223002: Fix test related to sdk move (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ddc.test.codegen_test; 8 library ddc.test.codegen_test;
9 9
10 import 'dart:io'; 10 import 'dart:io';
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // For now we're just trying to get decent code generation. 116 // For now we're just trying to get decent code generation.
117 var options = new CompilerOptions( 117 var options = new CompilerOptions(
118 outputDir: actualDir, 118 outputDir: actualDir,
119 checkSdk: true, 119 checkSdk: true,
120 forceCompile: true, 120 forceCompile: true,
121 outputDart: dartGen, 121 outputDart: dartGen,
122 formatOutput: dartGen, 122 formatOutput: dartGen,
123 cheapTestFormat: true, 123 cheapTestFormat: true,
124 emitSourceMaps: false); 124 emitSourceMaps: false);
125 var sdkPath = dartGen 125 var sdkPath = dartGen
126 ? path.join(testDir, '..', 'tool', 'input_sdk_src') 126 ? path.join(testDir, '..', 'tool', 'input_sdk')
127 : path.join(testDir, 'generated_sdk'); 127 : path.join(testDir, 'generated_sdk');
128 var testSdk = new TypeResolver.fromDir(sdkPath, options); 128 var testSdk = new TypeResolver.fromDir(sdkPath, options);
129 compile('dart:core', testSdk, options); 129 compile('dart:core', testSdk, options);
130 var outputDir = new Directory(path.join(actualDir, 'core')); 130 var outputDir = new Directory(path.join(actualDir, 'core'));
131 expect(outputDir.existsSync(), true, 131 expect(outputDir.existsSync(), true,
132 reason: '${outputDir.path} was created for dart:core'); 132 reason: '${outputDir.path} was created for dart:core');
133 }); 133 });
134 }); 134 });
135 135
136 if (!dartGen) { 136 if (!dartGen) {
(...skipping 21 matching lines...) Expand all
158 print('[AnalysisEngine] error $message $exception'); 158 print('[AnalysisEngine] error $message $exception');
159 } 159 }
160 160
161 @override void logError2(String message, Object exception) { 161 @override void logError2(String message, Object exception) {
162 print('[AnalysisEngine] error $message $exception'); 162 print('[AnalysisEngine] error $message $exception');
163 } 163 }
164 164
165 void logInformation(String message, [CaughtException exception]) {} 165 void logInformation(String message, [CaughtException exception]) {}
166 void logInformation2(String message, Object exception) {} 166 void logInformation2(String message, Object exception) {}
167 } 167 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698