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

Unified Diff: pkg/unittest/test/unittest_test.dart

Issue 11829045: Cleaning up unittest configurations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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
Index: pkg/unittest/test/unittest_test.dart
diff --git a/pkg/unittest/test/unittest_test.dart b/pkg/unittest/test/unittest_test.dart
index 68d295d404f73db0480beeaa985ea506c1ef0062..98fe22a287879654ad9fab0cdd509f9f31ebde16 100644
--- a/pkg/unittest/test/unittest_test.dart
+++ b/pkg/unittest/test/unittest_test.dart
@@ -61,15 +61,19 @@ class TestConfiguration extends Configuration {
// The port to communicate with the parent isolate
SendPort _port;
+ String _result;
TestConfiguration(this._port);
- void onDone(int passed, int failed, int errors, List<TestCase> results,
+ void onSummary(int passed, int failed, int errors, List<TestCase> results,
String uncaughtError) {
- var result = buildStatusString(passed, failed, errors, results,
+ _result = buildStatusString(passed, failed, errors, results,
count: count, setup: setup, teardown: teardown,
uncaughtError: uncaughtError);
- _port.send(result);
+ }
+
+ void onDone(bool success) {
+ _port.send(_result);
}
}
runTest() {

Powered by Google App Engine
This is Rietveld 408576698