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

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

Issue 1410553005: Introducing a lint server plugin. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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/analysis_server/lib/src/server/driver.dart ('k') | pkg/analysis_server/test/analysis_abstract.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_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 f2835185c0f0229ab2354d6ff4a2fb66d609f99e..1d4c9d1db55fe0e91da7b739eba3ce820f42e764 100644
--- a/pkg/analysis_server/test/analysis/notification_analysis_options_test.dart
+++ b/pkg/analysis_server/test/analysis/notification_analysis_options_test.dart
@@ -113,6 +113,23 @@ linter:
verifyLintsEnabled(['camel_case_types']);
}
+ test_lint_options_unsupported() async {
+ addOptionsFile('''
+linter:
+ rules:
+ - unsupported
+''');
+
+ addTestFile(testSource);
+ setAnalysisRoot();
+
+ await waitForTasksFinished();
+
+ expect(optionsFileErrors, hasLength(1));
+ expect(optionsFileErrors.first.severity, AnalysisErrorSeverity.WARNING);
+ expect(optionsFileErrors.first.type, AnalysisErrorType.STATIC_WARNING);
+ }
+
test_options_file_added() async {
addTestFile(testSource);
setAnalysisRoot();
« no previous file with comments | « pkg/analysis_server/lib/src/server/driver.dart ('k') | pkg/analysis_server/test/analysis_abstract.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698