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

Unified Diff: pkg/unittest/lib/compact_vm_config.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
« no previous file with comments | « no previous file | pkg/unittest/lib/html_config.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/lib/compact_vm_config.dart
diff --git a/pkg/unittest/lib/compact_vm_config.dart b/pkg/unittest/lib/compact_vm_config.dart
index 55831564456def06989ac71b31a601c3e4326060..0a4080b18ceab2cabddeabe425268ee1e6359450 100644
--- a/pkg/unittest/lib/compact_vm_config.dart
+++ b/pkg/unittest/lib/compact_vm_config.dart
@@ -11,7 +11,7 @@
library compact_vm_config;
import 'dart:io';
-import 'package:unittest/unittest.dart';
+import 'unittest.dart';
const String _GREEN = '\u001b[32m';
const String _RED = '\u001b[31m';
@@ -60,7 +60,7 @@ class CompactVMConfiguration extends Configuration {
return str.split("\n").mappedBy((line) => " $line").join("\n");
}
- 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 success = false;
if (passed == 0 && failed == 0 && errors == 0) {
@@ -77,8 +77,14 @@ class CompactVMConfiguration extends Configuration {
}
print('$passed PASSED, $failed FAILED, $errors ERRORS');
}
+ }
- if (!success) exit(1);
+ void onDone(bool success) {
+ try {
+ super.onDone(success);
+ } on Exception catch(ex) {
Jennifer Messerly 2013/01/10 02:31:32 should this just be a raw catch -- or do we know f
Siggi Cherem (dart-lang) 2013/01/10 02:44:49 Done (see changes in vm_config). Technically we kn
+ exit(1);
Jennifer Messerly 2013/01/10 02:31:32 out of curiousity -- why do we need the explicit "
Siggi Cherem (dart-lang) 2013/01/10 02:44:49 Configuration (the base class I was using) is mean
+ }
}
int _lastLength = 0;
@@ -166,6 +172,8 @@ class CompactVMConfiguration extends Configuration {
}
return '...$res';
}
+
+ void notifyController(String msg) {}
}
void useCompactVMConfiguration() {
« no previous file with comments | « no previous file | pkg/unittest/lib/html_config.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698