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

Side by Side Diff: pkg/analyzer_cli/test/super_mixin_test.dart

Issue 2840703002: Refactoring analyzer_cli for code hygiene. (Closed)
Patch Set: Created 3 years, 8 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
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 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
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 }
OLDNEW
« pkg/analyzer_cli/lib/src/batch_mode.dart ('K') | « pkg/analyzer_cli/test/strong_mode_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698