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.strong_mode; | 5 library analyzer_cli.test.strong_mode; |
6 | 6 |
7 import 'dart:io'; | 7 import 'dart:io'; |
8 | 8 |
9 import 'package:analyzer_cli/src/driver.dart' show Driver, errorSink, outSink; | 9 import 'package:analyzer_cli/src/analyzer_driver.dart' |
| 10 show Driver, errorSink, outSink; |
10 import 'package:path/path.dart' as path; | 11 import 'package:path/path.dart' as path; |
11 import 'package:test/test.dart'; | 12 import 'package:test/test.dart'; |
12 | 13 |
13 import 'driver_test.dart'; | 14 import 'driver_test.dart'; |
14 import 'utils.dart'; | 15 import 'utils.dart'; |
15 | 16 |
16 /// End-to-end test for --strong checking. | 17 /// End-to-end test for --strong checking. |
17 /// | 18 /// |
18 /// Most strong mode tests are in Analyzer, but this verifies the option is | 19 /// Most strong mode 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. |
(...skipping 27 matching lines...) Expand all Loading... |
47 | 48 |
48 expect(exitCode, 3); | 49 expect(exitCode, 3); |
49 var stdout = outSink.toString(); | 50 var stdout = outSink.toString(); |
50 expect(stdout, contains('[error] Invalid override')); | 51 expect(stdout, contains('[error] Invalid override')); |
51 expect(stdout, contains('[error] Type check failed')); | 52 expect(stdout, contains('[error] Type check failed')); |
52 expect(stdout, contains('2 errors found.')); | 53 expect(stdout, contains('2 errors found.')); |
53 expect(errorSink.toString(), ''); | 54 expect(errorSink.toString(), ''); |
54 }); | 55 }); |
55 }); | 56 }); |
56 } | 57 } |
OLD | NEW |