Chromium Code Reviews| Index: pkg/unittest/lib/unittest.dart |
| diff --git a/pkg/unittest/lib/unittest.dart b/pkg/unittest/lib/unittest.dart |
| index a0f5ffc3e41f8ee66f41e12c881518197ec52713..409aa81195b7995b8c249f5194bd65976f5ee294 100644 |
| --- a/pkg/unittest/lib/unittest.dart |
| +++ b/pkg/unittest/lib/unittest.dart |
| @@ -185,7 +185,12 @@ void set unittestConfiguration(Configuration value) { |
| } |
| } |
| -void logMessage(String message) => _config.logMessage(message); |
| +/** |
|
kevmoo-old
2013/03/29 02:19:25
Call the corresponding logTestCaseMessage on the c
|
| + * Can be called by tests to log status. Tests should use this |
| + * instead of [print]. |
| + */ |
| +void logMessage(String message) => |
| + _config.logTestCaseMessage(currentTestCase, message); |
| /** |
| * Description text of the current test group. If multiple groups are nested, |
| @@ -785,7 +790,7 @@ void _completeTests() { |
| case ERROR: errors++; break; |
| } |
| } |
| - _config.onSummary(passed, failed, errors, _testCases, _uncaughtErrorMessage); |
| + _config.onSummary(passed, failed, errors, testCases, _uncaughtErrorMessage); |
|
kevmoo-old
2013/03/29 02:19:25
Tiny nit. Pass onSummary the immutable view of tes
|
| _config.onDone(passed > 0 && failed == 0 && errors == 0 && |
| _uncaughtErrorMessage == null); |
| _initialized = false; |