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

Side by Side Diff: test/end_to_end_test.dart

Issue 1406983003: Remove the checker and corresponding dead code (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 2 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 | « test/dependency_graph_test.dart ('k') | test/report_test.dart » ('j') | 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 that run the checker end-to-end using the file system, but with a mock 5 /// Tests that run the checker end-to-end using the file system, but with a mock
6 /// SDK. 6 /// SDK.
7 library dev_compiler.test.end_to_end; 7 library dev_compiler.test.end_to_end;
8 8
9 import 'package:dev_compiler/devc.dart'; 9 import 'package:dev_compiler/devc.dart';
10 import 'package:dev_compiler/src/options.dart'; 10 import 'package:dev_compiler/src/options.dart';
11 import 'package:test/test.dart'; 11 import 'package:test/test.dart';
12 import 'testing.dart' show realSdkContext, testDirectory; 12 import 'testing.dart' show realSdkContext, testDirectory;
13 13
14 main() { 14 main() {
15 var mockSdkContext = createAnalysisContextWithSources( 15 var mockSdkContext = createAnalysisContextWithSources(
16 new StrongModeOptions(), new SourceResolverOptions(useMockSdk: true)); 16 new SourceResolverOptions(useMockSdk: true));
17 var compiler = new BatchCompiler(mockSdkContext, new CompilerOptions()); 17 var compiler = new BatchCompiler(mockSdkContext, new CompilerOptions());
18 _check(file) => compiler.compileFromUriString('$testDirectory/$file.dart'); 18 _check(file) => compiler.compileFromUriString('$testDirectory/$file.dart');
19 19
20 test('checker runs correctly (end-to-end)', () { 20 test('checker runs correctly (end-to-end)', () {
21 _check('samples/funwithtypes'); 21 _check('samples/funwithtypes');
22 }); 22 });
23 23
24 test('checker accepts files with imports', () { 24 test('checker accepts files with imports', () {
25 _check('samples/import_test'); 25 _check('samples/import_test');
26 }); 26 });
27 27
28 test('checker tests function types', () { 28 test('checker tests function types', () {
29 // TODO(vsm): Check for correct down casts. 29 // TODO(vsm): Check for correct down casts.
30 _check('samples/function_type_test'); 30 _check('samples/function_type_test');
31 }); 31 });
32 32
33 test('checker tests runtime checks', () { 33 test('checker tests runtime checks', () {
34 // TODO(sigmund,vsm): Check output for invalid checks. 34 // TODO(sigmund,vsm): Check output for invalid checks.
35 _check('samples/runtimetypechecktest'); 35 _check('samples/runtimetypechecktest');
36 }); 36 });
37 37
38 test('checker tests return values', () { 38 test('checker tests return values', () {
39 // TODO(vsm): Check for conversions. 39 // TODO(vsm): Check for conversions.
40 _check('samples/return_test'); 40 _check('samples/return_test');
41 }); 41 });
42 } 42 }
OLDNEW
« no previous file with comments | « test/dependency_graph_test.dart ('k') | test/report_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698