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

Unified Diff: tools/testing/dart/test_runner.dart

Issue 9621015: Multitest annotations now accept multiple annotations on one line. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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: 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;

Powered by Google App Engine
This is Rietveld 408576698