| Index: pkg/unittest/lib/unittest.dart
|
| diff --git a/pkg/unittest/lib/unittest.dart b/pkg/unittest/lib/unittest.dart
|
| index a0f5ffc3e41f8ee66f41e12c881518197ec52713..9a308ac6a77884d7d0f941ecb71061b77793e158 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);
|
| +/**
|
| + * Can be called by tests to log status. Tests should use this
|
| + * instead of [print].
|
| + */
|
| +void logMessage(String message) =>
|
| + _config.onLogMessage(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);
|
| _config.onDone(passed > 0 && failed == 0 && errors == 0 &&
|
| _uncaughtErrorMessage == null);
|
| _initialized = false;
|
|
|