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

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') | pkg/unittest/lib/vm_config.dart » ('J')
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..7e6d7e8362b94e185ddf7623fae99f4a30ff2d54 100644
--- a/pkg/unittest/lib/compact_vm_config.dart
+++ b/pkg/unittest/lib/compact_vm_config.dart
@@ -11,14 +11,15 @@
library compact_vm_config;
import 'dart:io';
-import 'package:unittest/unittest.dart';
+import 'unittest.dart';
+import 'vm_config.dart';
const String _GREEN = '\u001b[32m';
const String _RED = '\u001b[31m';
const String _NONE = '\u001b[0m';
const int MAX_LINE = 80;
-class CompactVMConfiguration extends Configuration {
+class CompactVMConfiguration extends VMConfiguration {
Date _start;
int _pass = 0;
int _fail = 0;
@@ -60,7 +61,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 +78,6 @@ class CompactVMConfiguration extends Configuration {
}
print('$passed PASSED, $failed FAILED, $errors ERRORS');
}
-
- if (!success) exit(1);
}
int _lastLength = 0;
@@ -166,6 +165,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') | pkg/unittest/lib/vm_config.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698