Chromium Code Reviews| Index: dart/tests/compiler/dart2js/analyze_helper.dart |
| diff --git a/dart/tests/compiler/dart2js/analyze_helper.dart b/dart/tests/compiler/dart2js/analyze_helper.dart |
| index c3e6729506de0ff985e053ae43b906bc7decc633..b21d5cf83f036d70181cc166daab26b6afe51944 100644 |
| --- a/dart/tests/compiler/dart2js/analyze_helper.dart |
| +++ b/dart/tests/compiler/dart2js/analyze_helper.dart |
| @@ -27,6 +27,7 @@ import '../../../sdk/lib/_internal/compiler/implementation/source_file_provider. |
| class CollectingDiagnosticHandler extends FormattingDiagnosticHandler { |
| bool hasWarnings = false; |
| + bool hasHint = false; |
| bool hasErrors = false; |
| Map<String, Map<String, int>> whiteListMap |
| @@ -46,6 +47,7 @@ class CollectingDiagnosticHandler extends FormattingDiagnosticHandler { |
| void checkResults() { |
| Expect.isFalse(hasWarnings); |
| + Expect.isFalse(hasHint); |
| Expect.isFalse(hasErrors); |
| Expect.isTrue(checkWhiteListUse()); |
| reportWhiteListUse(); |
| @@ -102,6 +104,13 @@ class CollectingDiagnosticHandler extends FormattingDiagnosticHandler { |
| } |
| hasWarnings = true; |
| } |
| + if (kind == api.Diagnostic.HINT) { |
| + if (checkWhiteList(uri, message)) { |
| + // Suppress white listed warnings. |
|
kasperl
2013/06/26 09:22:28
warnings -> hints.
ahe
2013/06/26 10:45:51
Done.
|
| + return; |
| + } |
| + hasHint = true; |
| + } |
| if (kind == api.Diagnostic.ERROR) { |
| if (checkWhiteList(uri, message)) { |
| // Suppress white listed warnings. |