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

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

Issue 2988343002: Initial support for an explicit plugin list (Closed)
Patch Set: Created 3 years, 4 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/test/generated/engine_test.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/options_test.dart
diff --git a/pkg/analyzer/test/src/task/options_test.dart b/pkg/analyzer/test/src/task/options_test.dart
index 9f3058fcdf5447f4a991695a398d14aff64cd967..d88e099257ea832d886fd0ddd6d211c6c47b08dd 100644
--- a/pkg/analyzer/test/src/task/options_test.dart
+++ b/pkg/analyzer/test/src/task/options_test.dart
@@ -127,6 +127,41 @@ analyzer:
expect(excludes, unorderedEquals(['foo/bar.dart', 'test/**']));
}
+ test_configure_plugins_list() {
+ configureContext('''
+analyzer:
+ plugins:
+ - angular2
+ - intl
+''');
+
+ List<String> names = analysisOptions.enabledPluginNames;
+ expect(names, ['angular2', 'intl']);
+ }
+
+ test_configure_plugins_map() {
+ configureContext('''
+analyzer:
+ plugins:
+ angular2:
+ enabled: true
+''');
+
+ List<String> names = analysisOptions.enabledPluginNames;
+ expect(names, ['angular2']);
+ }
+
+ test_configure_plugins_string() {
+ configureContext('''
+analyzer:
+ plugins:
+ angular2
+''');
+
+ List<String> names = analysisOptions.enabledPluginNames;
+ expect(names, ['angular2']);
+ }
+
test_configure_strong_mode() {
configureContext('''
analyzer:
« no previous file with comments | « pkg/analyzer/test/generated/engine_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698