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

Unified Diff: pkg/analyzer/test/source/error_processor_test.dart

Issue 1780783002: Don't report redundant type errors in strong mode. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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
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:

Powered by Google App Engine
This is Rietveld 408576698