| 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:
|
|
|