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

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

Issue 1803203002: Fix analysis_server test to not expect redundant error. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/analysis/notification_analysis_options_test.dart
diff --git a/pkg/analysis_server/test/analysis/notification_analysis_options_test.dart b/pkg/analysis_server/test/analysis/notification_analysis_options_test.dart
index a24b8117ce670116c6c35cbcc653bb59022d636c..265ee9b1bd17a765897c49c185ba6a9aa46bf593 100644
--- a/pkg/analysis_server/test/analysis/notification_analysis_options_test.dart
+++ b/pkg/analysis_server/test/analysis/notification_analysis_options_test.dart
@@ -296,12 +296,11 @@ linter:
expect(testContext.analysisOptions.strongMode, enabled);
if (enabled) {
- // Should produce a warning and an error.
+ // Should produce a type warning.
expect(
errors.map((error) => error.type),
unorderedEquals([
- AnalysisErrorType.STATIC_TYPE_WARNING,
- AnalysisErrorType.COMPILE_TIME_ERROR
+ AnalysisErrorType.STATIC_TYPE_WARNING
]));
} else {
// Should only produce a hint.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698