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

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

Issue 8609012: Fix timing of both dart and python test scripts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month 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 76b652bc842d900f25690b28ed64eacd7a5e45d1..23d615325a7a7a7b5bac5b0327b15e45d24b859e 100644
--- a/tools/testing/dart/test_progress.dart
+++ b/tools/testing/dart/test_progress.dart
@@ -7,20 +7,20 @@
#import("test_runner.dart");
class ProgressIndicator {
- ProgressIndicator() : _startTime = new Date.now();
+ ProgressIndicator(this._startTime);
- factory ProgressIndicator.fromName(String name) {
+ factory ProgressIndicator.fromName(String name, Date startTime) {
switch (name) {
case 'compact':
- return new CompactProgressIndicator();
+ return new CompactProgressIndicator(startTime);
case 'line':
- return new LineProgressIndicator();
+ return new LineProgressIndicator(startTime);
case 'verbose':
- return new VerboseProgressIndicator();
+ return new VerboseProgressIndicator(startTime);
case 'status':
- return new StatusProgressIndicator();
+ return new StatusProgressIndicator(startTime);
case 'buildbot':
- return new BuildbotProgressIndicator();
+ return new BuildbotProgressIndicator(startTime);
default:
assert(false);
break;
@@ -116,6 +116,8 @@ class ProgressIndicator {
class CompactProgressIndicator extends ProgressIndicator {
+ CompactProgressIndicator(Date start_time) : super(start_time);
kasperl 2011/11/21 11:46:39 startTime
+
void allDone() {
}
@@ -136,6 +138,8 @@ class CompactProgressIndicator extends ProgressIndicator {
class LineProgressIndicator extends ProgressIndicator {
+ LineProgressIndicator(Date start_time) : super(start_time);
+
void allDone() {
_printStatus();
}
@@ -154,6 +158,8 @@ class LineProgressIndicator extends ProgressIndicator {
class VerboseProgressIndicator extends ProgressIndicator {
+ VerboseProgressIndicator(Date start_time) : super(start_time);
+
void allDone() {
_printStatus();
}
@@ -173,6 +179,8 @@ class VerboseProgressIndicator extends ProgressIndicator {
class StatusProgressIndicator extends ProgressIndicator {
+ StatusProgressIndicator(Date start_time) : super(start_time);
+
void allDone() {
_printStatus();
}
@@ -186,6 +194,8 @@ class StatusProgressIndicator extends ProgressIndicator {
class BuildbotProgressIndicator extends ProgressIndicator {
+ BuildbotProgressIndicator(Date start_time) : super(start_time);
+
void allDone() {
_printStatus();
}
« tools/test.dart ('K') | « tools/test.py ('k') | tools/testing/dart/test_runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698