Index: pkg/analyzer_cli/test/driver_test.dart |
diff --git a/pkg/analyzer_cli/test/driver_test.dart b/pkg/analyzer_cli/test/driver_test.dart |
index 5a3085e52434bcec1cce00e7ee9b7fb404e99501..e6bd81224131387dcb63218e4be07d50ee78cc5f 100644 |
--- a/pkg/analyzer_cli/test/driver_test.dart |
+++ b/pkg/analyzer_cli/test/driver_test.dart |
@@ -297,15 +297,18 @@ linter: |
}); |
test('filters', () { |
- var filters = |
- driver.context.getConfigurationData(CONFIGURED_ERROR_FILTERS); |
- expect(filters, hasLength(1)); |
+ var processors = |
+ driver.context.getConfigurationData(CONFIGURED_ERROR_PROCESSORS); |
+ expect(processors, hasLength(1)); |
- var unused_error = new AnalysisError( |
+ var unused_local_variable = new AnalysisError( |
new TestSource(), 0, 1, HintCode.UNUSED_LOCAL_VARIABLE, [ |
['x'] |
]); |
- expect(filters.any((filter) => filter(unused_error)), isTrue); |
+ |
+ var unusedLocalVariable = |
+ processors.firstWhere((p) => p.appliesTo(unused_local_variable)); |
+ expect(unusedLocalVariable.severity, isNull); |
}); |
test('language config', () { |