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

Unified Diff: pkg/analysis_server/test/analysis/notification_errors_test.dart

Issue 2935733003: Remove some unnecessary tests for non-driver mode (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | pkg/analysis_server/test/services/correction/assist_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/analysis/notification_errors_test.dart
diff --git a/pkg/analysis_server/test/analysis/notification_errors_test.dart b/pkg/analysis_server/test/analysis/notification_errors_test.dart
index bdbaa80375dda739711fb1e5c72592d818d0105f..e7cd3aa2ff7ff3044b4408d4709b4afa7d93d3b1 100644
--- a/pkg/analysis_server/test/analysis/notification_errors_test.dart
+++ b/pkg/analysis_server/test/analysis/notification_errors_test.dart
@@ -83,15 +83,10 @@ linter:
await waitForTasksFinished();
List<Linter> lints;
- if (enableNewAnalysisDriver) {
- AnalysisDriver testDriver = (server.contextManager as ContextManagerImpl)
- .getContextInfoFor(resourceProvider.getFolder(projectPath))
- .analysisDriver;
- lints = testDriver.analysisOptions.lintRules;
- } else {
- AnalysisContext testContext = server.getContainingContext(testFile);
- lints = getLints(testContext);
- }
+ AnalysisDriver testDriver = (server.contextManager as ContextManagerImpl)
+ .getContextInfoFor(resourceProvider.getFolder(projectPath))
+ .analysisDriver;
+ lints = testDriver.analysisOptions.lintRules;
// Registry should only contain single lint rule.
expect(lints, hasLength(1));
LintRule lint = lints.first as LintRule;
« no previous file with comments | « no previous file | pkg/analysis_server/test/services/correction/assist_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698