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 library analyzer_cli.test.super_mixin; | 5 library analyzer_cli.test.super_mixin; |
6 | 6 |
7 import 'dart:io'; | 7 import 'dart:io'; |
8 | 8 |
| 9 import 'package:analyzer_cli/src/analyzer_driver.dart' |
| 10 show Driver, errorSink, outSink; |
9 import 'package:analyzer_cli/src/ansi.dart' as ansi; | 11 import 'package:analyzer_cli/src/ansi.dart' as ansi; |
10 import 'package:analyzer_cli/src/driver.dart' show Driver, errorSink, outSink; | |
11 import 'package:path/path.dart' as path; | 12 import 'package:path/path.dart' as path; |
12 import 'package:test/test.dart'; | 13 import 'package:test/test.dart'; |
13 | 14 |
14 import 'utils.dart'; | 15 import 'utils.dart'; |
15 | 16 |
16 /// End-to-end test for --supermixins. | 17 /// End-to-end test for --supermixins. |
17 /// | 18 /// |
18 /// Most super mixin tests are in Analyzer, but this verifies the option is | 19 /// Most super mixin tests are in Analyzer, but this verifies the option is |
19 /// working and producing extra errors as expected. | 20 /// working and producing extra errors as expected. |
20 /// | 21 /// |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 test('produces no errors when option present', () async { | 63 test('produces no errors when option present', () async { |
63 var testPath = path.join(testDirectory, 'data/super_mixin_example.dart'); | 64 var testPath = path.join(testDirectory, 'data/super_mixin_example.dart'); |
64 await new Driver().start(['--supermixin', testPath]); | 65 await new Driver().start(['--supermixin', testPath]); |
65 | 66 |
66 expect(exitCode, 0); | 67 expect(exitCode, 0); |
67 var stdout = outSink.toString(); | 68 var stdout = outSink.toString(); |
68 expect(stdout, contains('No issues found')); | 69 expect(stdout, contains('No issues found')); |
69 }); | 70 }); |
70 }); | 71 }); |
71 } | 72 } |
OLD | NEW |