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

Side by Side Diff: test/codegen_test.dart

Issue 962213003: fix analysis messages (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
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 outputDir: actualDir, 117 outputDir: actualDir,
118 checkSdk: true, 118 checkSdk: true,
119 forceCompile: true, 119 forceCompile: true,
120 outputDart: dartGen, 120 outputDart: dartGen,
121 formatOutput: dartGen, 121 formatOutput: dartGen,
122 cheapTestFormat: true); 122 cheapTestFormat: true);
123 var sdkPath = dartGen 123 var sdkPath = dartGen
124 ? path.join(testDir, '..', 'tool', 'input_sdk_src') 124 ? path.join(testDir, '..', 'tool', 'input_sdk_src')
125 : path.join(testDir, 'generated_sdk'); 125 : path.join(testDir, 'generated_sdk');
126 var testSdk = new TypeResolver.fromDir(sdkPath, options); 126 var testSdk = new TypeResolver.fromDir(sdkPath, options);
127 var result = compile('dart:core', testSdk, options); 127 compile('dart:core', testSdk, options);
128 var outputDir = new Directory(path.join(actualDir, 'core')); 128 var outputDir = new Directory(path.join(actualDir, 'core'));
129 expect(outputDir.existsSync(), true, 129 expect(outputDir.existsSync(), true,
130 reason: '${outputDir.path} was created for dart:core'); 130 reason: '${outputDir.path} was created for dart:core');
131 }); 131 });
132 }); 132 });
133 133
134 if (!dartGen) { 134 if (!dartGen) {
135 test('devc jscodegen html_input.html', () { 135 test('devc jscodegen html_input.html', () {
136 var filePath = path.join(inputDir, 'html_input.html'); 136 var filePath = path.join(inputDir, 'html_input.html');
137 compilerMessages.writeln('// Messages from compiling html_input.html'); 137 compilerMessages.writeln('// Messages from compiling html_input.html');
(...skipping 18 matching lines...) Expand all
156 print('[AnalysisEngine] error $message $exception'); 156 print('[AnalysisEngine] error $message $exception');
157 } 157 }
158 158
159 @override void logError2(String message, Object exception) { 159 @override void logError2(String message, Object exception) {
160 print('[AnalysisEngine] error $message $exception'); 160 print('[AnalysisEngine] error $message $exception');
161 } 161 }
162 162
163 void logInformation(String message, [CaughtException exception]) {} 163 void logInformation(String message, [CaughtException exception]) {}
164 void logInformation2(String message, Object exception) {} 164 void logInformation2(String message, Object exception) {}
165 } 165 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698