Chromium Code Reviews| Index: tools/testing/dart/test_runner.dart |
| diff --git a/tools/testing/dart/test_runner.dart b/tools/testing/dart/test_runner.dart |
| index d3c97e120ff8a83775c6a784639b05e0695b601d..2ac1bdaf6d714a49b8c1ffd46effd554e0212195 100644 |
| --- a/tools/testing/dart/test_runner.dart |
| +++ b/tools/testing/dart/test_runner.dart |
| @@ -337,10 +337,12 @@ class AnalysisTestOutputImpl extends TestOutputImpl { |
| } |
| bool _didMultitestFail(List errors, List staticWarnings) { |
| - String outcome = testCase.info.multitestOutcome; |
| - if ((outcome == '' || outcome == 'compile-time error') && errors.length > 0) { |
| + Set<String> outcome = testCase.info.multitestOutcome; |
|
Bill Hesse
2012/03/08 10:21:49
It should be checked that we never reach here with
zundel
2012/03/08 13:18:00
Added assertion
|
| + if ((outcome.contains('') || outcome.contains('compile-time error')) |
|
Bill Hesse
2012/03/08 10:21:49
Isn't this check about not containing 'run-time er
zundel
2012/03/08 13:18:00
Besides runtime-error, we also don't want 'errors'
|
| + && errors.length > 0) { |
| return true; |
| - } else if (outcome == 'static type error' && staticWarnings.length > 0) { |
| + } else if (outcome.contains('static type error') |
| + && staticWarnings.length > 0) { |
| return true; |
| } |
| return false; |