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

Unified Diff: test/integration_test.dart

Issue 1991283003: Fix `overriden_field` false positive (#246). (Closed) Base URL: https://github.com/dart-lang/linter.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/_data/overridden_field/src/b.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/integration_test.dart
diff --git a/test/integration_test.dart b/test/integration_test.dart
index db7aa1664e99177478c8967f4425f0bed0832035..bc74339111a4d6cb8fa9f241656bb82038d241d6 100644
--- a/test/integration_test.dart
+++ b/test/integration_test.dart
@@ -150,6 +150,32 @@ defineTests() {
});
});
+ group('overridden_field', () {
+ IOSink currentOut = outSink;
+ CollectingSink collectingOut = new CollectingSink();
+ setUp(() {
+ exitCode = 0;
+ outSink = collectingOut;
+ });
+ tearDown(() {
+ collectingOut.buffer.clear();
+ outSink = currentOut;
+ exitCode = 0;
+ });
+
+ // https://github.com/dart-lang/linter/issues/246
+ test('overrides across libraries', () {
+ dartlint.main([
+ 'test/_data/overridden_field',
+ '-c',
+ 'test/_data/overridden_field/lintconfig.yaml'
+ ]);
+ expect(exitCode, 0);
+ expect(collectingOut.trim(),
+ stringContainsInOrder(['2 files analyzed, 0 issues found, in']));
+ });
+ });
+
group('examples', () {
test('lintconfig.yaml', () {
var src = readFile('example/lintconfig.yaml');
« no previous file with comments | « test/_data/overridden_field/src/b.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698