Chromium Code Reviews| Index: pkg/unittest/unittest.dart |
| =================================================================== |
| --- pkg/unittest/unittest.dart (revision 11994) |
| +++ pkg/unittest/unittest.dart (working copy) |
| @@ -662,13 +662,15 @@ |
| void _reportTestError(String msg, String trace) { |
| if (_currentTest < _tests.length) { |
| final testCase = _tests[_currentTest]; |
| - testCase.error(msg, trace); |
| - if (testCase.callbackFunctionsOutstanding > 0) { |
| - _nextTestCase(); |
| + if (testCase.running) { |
|
Siggi Cherem (dart-lang)
2012/09/07 17:13:23
seems that this means that also tests that fail af
gram
2012/09/07 17:40:53
I thought about that. I have mixed feelings about
|
| + testCase.error(msg, trace); |
| + if (testCase.callbackFunctionsOutstanding > 0) { |
| + _nextTestCase(); |
| + } |
| + return; |
| } |
| - } else { |
| - _uncaughtErrorMessage = "$msg: $trace"; |
| } |
| + _uncaughtErrorMessage = "$msg: $trace"; |
| } |
| /** Runs [callback] at the end of the event loop. */ |