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

Unified Diff: pkg/analyzer/test/src/task/dart_test.dart

Issue 1392683003: Linter hookup into AS. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merged with master. Created 5 years, 2 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 | « pkg/analyzer/lib/src/task/dart.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/task/dart_test.dart
diff --git a/pkg/analyzer/test/src/task/dart_test.dart b/pkg/analyzer/test/src/task/dart_test.dart
index 0f39004e1c77208f0eb03914aef6097e2dd86f1d..eb0efbcb5e6005bb8d7b1f1d0ba9c513319f7d72 100644
--- a/pkg/analyzer/test/src/task/dart_test.dart
+++ b/pkg/analyzer/test/src/task/dart_test.dart
@@ -2249,11 +2249,12 @@ class GenerateLintsTaskTest extends _AbstractDartTaskTest {
void setUp() {
super.setUp();
enableLints();
+ lintRegistry[context] = [new GenerateLintsTaskTest_TestLinter()];
}
@override
void tearDown() {
- LintGenerator.LINTERS.clear();
+ lintRegistry[context] = [];
super.tearDown();
}
@@ -2264,9 +2265,6 @@ class GenerateLintsTaskTest extends _AbstractDartTaskTest {
class a { }
''');
- LintGenerator.LINTERS.clear();
- LintGenerator.LINTERS.add(new GenerateLintsTaskTest_TestLinter());
-
LibrarySpecificUnit target = new LibrarySpecificUnit(source, source);
computeResult(target, LINTS, matcher: isGenerateLintsTask);
// validate
« no previous file with comments | « pkg/analyzer/lib/src/task/dart.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698