Index: pkg/analyzer/test/source/error_processor_test.dart |
diff --git a/pkg/analyzer/test/source/error_processor_test.dart b/pkg/analyzer/test/source/error_processor_test.dart |
index 3c3facbdc62fb50dc132a8b29cdf23e23cdaaa26..c84a901a5fa9436a6db4cc9966eefee8ccf9d767 100644 |
--- a/pkg/analyzer/test/source/error_processor_test.dart |
+++ b/pkg/analyzer/test/source/error_processor_test.dart |
@@ -47,7 +47,7 @@ main() { |
context = new TestContext(); |
}); |
- group('ErrorProcessorTest', () { |
+ group('ErrorProcessor', () { |
test('configureOptions', () { |
configureOptions(''' |
analyzer: |
@@ -62,9 +62,17 @@ analyzer: |
expect(getProcessor(unused_local_variable), isNull); |
expect(getProcessor(use_of_void_result), isNull); |
}); |
+ |
+ test('upgrades static type warnings to errors in strong mode', () { |
+ configureOptions(''' |
+analyzer: |
+ strong-mode: true |
+'''); |
+ expect(getProcessor(invalid_assignment).severity, ErrorSeverity.ERROR); |
+ }); |
}); |
- group('ErrorConfigTest', () { |
+ group('ErrorConfig', () { |
var config = ''' |
analyzer: |
errors: |