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

Unified Diff: tools/testing/dart/test_progress.dart

Issue 9315036: Change output of test.dart --list option, so it can be parsed automatically. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: more changes Created 8 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: tools/testing/dart/test_progress.dart
diff --git a/tools/testing/dart/test_progress.dart b/tools/testing/dart/test_progress.dart
index d3e14005482fdf068fb2b5a91ac79d359f5b5297..334dec0a35800dd6d27fa23b7570f9bbba0e5e0e 100644
--- a/tools/testing/dart/test_progress.dart
+++ b/tools/testing/dart/test_progress.dart
@@ -24,6 +24,8 @@ class ProgressIndicator {
return new LineProgressIndicator(startTime, printTiming);
case 'verbose':
return new VerboseProgressIndicator(startTime, printTiming);
+ case 'silent':
+ return new SilentProgressIndicator(startTime, printTiming);
case 'status':
return new StatusProgressIndicator(startTime, printTiming);
case 'buildbot':
@@ -183,6 +185,18 @@ class ProgressIndicator {
}
+class SilentProgressIndicator extends ProgressIndicator {
+ SilentProgressIndicator(Date startTime, bool printTiming)
+ : super(startTime, printTiming);
+ void testAdded() { }
+ void start(TestCase test) { }
+ void done(TestCase test) { }
+ void allTestsKnown() { }
+ void allDone() {
+ exit(0);
+ }
+}
+
class CompactIndicator extends ProgressIndicator {
CompactIndicator(Date startTime, bool printTiming)
: super(startTime, printTiming);

Powered by Google App Engine
This is Rietveld 408576698