OLD | NEW |
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. | 5 /// Tests that run the checker end-to-end using the file system. |
6 library dev_compiler.test.end_to_end; | 6 library dev_compiler.test.end_to_end; |
7 | 7 |
8 import 'dart:io'; | |
9 import 'package:cli_util/cli_util.dart' show getSdkDir; | 8 import 'package:cli_util/cli_util.dart' show getSdkDir; |
10 import 'package:dev_compiler/devc.dart' show Compiler; | 9 import 'package:dev_compiler/devc.dart' show Compiler; |
11 import 'package:dev_compiler/src/options.dart'; | 10 import 'package:dev_compiler/src/options.dart'; |
12 import 'package:path/path.dart' as path; | |
13 import 'package:test/test.dart'; | 11 import 'package:test/test.dart'; |
14 import '../test_util.dart' show testDirectory; | 12 import '../test_util.dart' show testDirectory; |
15 | 13 |
16 void main() { | 14 void main() { |
17 test('checker can run on itself ', () { | 15 test('checker can run on itself ', () { |
18 var options = new CompilerOptions( | 16 var options = new CompilerOptions( |
19 sourceOptions: new SourceResolverOptions( | 17 sourceOptions: new SourceResolverOptions( |
20 entryPointFile: '$testDirectory/all_tests.dart', | 18 entryPointFile: '$testDirectory/all_tests.dart', |
21 dartSdkPath: getSdkDir().path)); | 19 dartSdkPath: getSdkDir().path)); |
22 new Compiler(options).run(); | 20 new Compiler(options).run(); |
23 }); | 21 }); |
24 } | 22 } |
OLD | NEW |