Chromium Code Reviews| Index: pkg/unittest/lib/unittest.dart |
| =================================================================== |
| --- pkg/unittest/lib/unittest.dart (revision 19168) |
| +++ pkg/unittest/lib/unittest.dart (working copy) |
| @@ -432,11 +432,11 @@ |
| _after, _testNum); |
| } |
| - /** Returns false if we exceded the number of expected calls. */ |
| + /** Returns true if we have not exceeded the number of expected calls. */ |
| bool _checkCallCount() { |
| if (_actualCalls > _expectedCalls) { |
| - _testCase.error('Callback ${_id}called more times than expected ' |
| - '($_actualCalls > $_expectedCalls).', ''); |
| + throw new TestFailure('Callback ${_id}called more times than expected ' |
| + '($_actualCalls > $_expectedCalls).'); |
| return false; |
|
Jennifer Messerly
2013/02/27 22:42:55
remove?
|
| } |
| return true; |