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

Unified Diff: tools/test.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
« no previous file with comments | « no previous file | tools/test.py » ('j') | tools/testing/dart/test_progress.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/test.dart
diff --git a/tools/test.dart b/tools/test.dart
index bd759fc0c2f3c14f23888e6b6d9d11d45771fefd..0b4b6c684007b1f8d3b9e591f1122b653465cf3d 100755
--- a/tools/test.dart
+++ b/tools/test.dart
@@ -35,11 +35,17 @@ void exitIfLastActivity() {
}
main() {
+ var start_time = new Date.now();
kasperl 2011/11/21 11:46:39 startTime
var optionsParser = new TestOptionsParser();
var configurations = optionsParser.parse(new Options().arguments);
if (configurations == null) return;
activityStarted();
- var queue = new ProcessQueue(configurations[0], exitIfLastActivity);
+ // Extract global options from first configuration.
+ var firstConf = configurations[0];
+ var queue = new ProcessQueue(firstConf['tasks'],
+ firstConf['progress'],
+ start_time,
+ exitIfLastActivity);
for (var conf in configurations) {
activityStarted();
new StandaloneTestSuite(conf).forEachTest(queue.runTest, activityCompleted);
« no previous file with comments | « no previous file | tools/test.py » ('j') | tools/testing/dart/test_progress.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698