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

Unified Diff: client/testing/unittest/unittestsuite.dart

Issue 8344084: Do not mark test as successful in callbackDone if test is (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/testing/unittest/unittestsuite.dart
===================================================================
--- client/testing/unittest/unittestsuite.dart (revision 578)
+++ client/testing/unittest/unittestsuite.dart (working copy)
@@ -160,12 +160,10 @@
'More calls to callbackDone() than expected. '
+ 'Actual: ${_callbacksCalled}, expected: ${expected}', '');
_uncaughtError = true;
- } else if (_callbacksCalled == testCase.callbacks) {
+ } else if (_callbacksCalled == testCase.callbacks && !_testIsRunning) {
testCase.recordSuccess();
- if (!_testIsRunning) {
- _currentTest++;
- _nextBatch();
- }
+ _currentTest++;
+ _nextBatch();
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698