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

Side by Side Diff: test/codegen_test.dart

Issue 1223103003: fix coverage of sdk build (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 5 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 dev_compiler.test.codegen_test; 8 library dev_compiler.test.codegen_test;
9 9
10 import 'dart:io'; 10 import 'dart:io';
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 savedLogger = AnalysisEngine.instance.logger; 124 savedLogger = AnalysisEngine.instance.logger;
125 AnalysisEngine.instance.logger = new PrintLogger(); 125 AnalysisEngine.instance.logger = new PrintLogger();
126 }); 126 });
127 tearDown(() { 127 tearDown(() {
128 AnalysisEngine.instance.logger = savedLogger; 128 AnalysisEngine.instance.logger = savedLogger;
129 }); 129 });
130 130
131 test('devc dart:core', () { 131 test('devc dart:core', () {
132 // Get the test SDK. We use a checked in copy so test expectations can 132 // Get the test SDK. We use a checked in copy so test expectations can
133 // be generated against a specific SDK version. 133 // be generated against a specific SDK version.
134 var testSdk = path.join(testDirectory, 'generated_sdk'); 134 var testSdk = path.join(testDirectory, '..', 'tool', 'generated_sdk');
135 var result = compile('dart:core', testSdk, checkSdk: true); 135 var result = compile('dart:core', testSdk, checkSdk: true);
136 var outputDir = new Directory(path.join(expectDir, 'core')); 136 var outputDir = new Directory(path.join(expectDir, 'core'));
137 var outFile = new File(path.join(expectDir, 'dart/core.js')); 137 var outFile = new File(path.join(expectDir, 'dart/core.js'));
138 expect(outFile.existsSync(), true, 138 expect(outFile.existsSync(), true,
139 reason: '${outFile.path} was created for dart:core'); 139 reason: '${outFile.path} was created for dart:core');
140 }); 140 });
141 }); 141 });
142 } 142 }
143 143
144 var expectedRuntime = 144 var expectedRuntime =
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 print('[AnalysisEngine] error $message $exception'); 268 print('[AnalysisEngine] error $message $exception');
269 } 269 }
270 270
271 @override void logError2(String message, Object exception) { 271 @override void logError2(String message, Object exception) {
272 print('[AnalysisEngine] error $message $exception'); 272 print('[AnalysisEngine] error $message $exception');
273 } 273 }
274 274
275 void logInformation(String message, [CaughtException exception]) {} 275 void logInformation(String message, [CaughtException exception]) {}
276 void logInformation2(String message, Object exception) {} 276 void logInformation2(String message, Object exception) {}
277 } 277 }
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