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

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

Issue 2559523005: Remove the AnalysisOptionsProcessor (Closed)
Patch Set: Created 4 years 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/src/plugin/plugin_config_test.dart ('k') | pkg/analyzer/test/src/test_all.dart » ('j') | 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 b8f717a57b4f65e65888b05fd12d0d8d16b2a413..675fd3357747a71c4f4c17fe31af3033cd2c3b16 100644
--- a/pkg/analyzer/test/src/task/options_test.dart
+++ b/pkg/analyzer/test/src/task/options_test.dart
@@ -38,7 +38,7 @@ class ContextConfigurationTest extends AbstractContextTest {
AnalysisOptions get analysisOptions => context.analysisOptions;
configureContext(String optionsSource) =>
- configureContextOptions(context, parseOptions(optionsSource));
+ applyToAnalysisOptions(analysisOptions, parseOptions(optionsSource));
Map<String, YamlNode> parseOptions(String source) =>
optionsProvider.getOptionsFromString(source);
@@ -87,7 +87,7 @@ analyzer:
unused_local_variable: error
''');
- List<ErrorProcessor> processors = context.analysisOptions.errorProcessors;
+ List<ErrorProcessor> processors = analysisOptions.errorProcessors;
expect(processors, hasLength(2));
var unused_local = new AnalysisError(
@@ -118,7 +118,7 @@ analyzer:
- 'test/**'
''');
- List<String> excludes = context.analysisOptions.excludePatterns;
+ List<String> excludes = analysisOptions.excludePatterns;
expect(excludes, unorderedEquals(['foo/bar.dart', 'test/**']));
}
« no previous file with comments | « pkg/analyzer/test/src/plugin/plugin_config_test.dart ('k') | pkg/analyzer/test/src/test_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698