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

Unified Diff: tools/test.dart

Issue 12517015: Update of co19_test.dart to reflect new API (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 | tools/testing/dart/co19_test.dart » ('j') | no next file with comments »
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 73006995bcf718f6db033da360328404595ae422..d3f07b8baeb0e19135ce322f83658626f9c2b039 100755
--- a/tools/test.dart
+++ b/tools/test.dart
@@ -71,12 +71,8 @@ final TEST_SUITE_DIRECTORIES = [
new Path('sdk/lib/_internal/dartdoc'),
];
-main() {
+void testConfigurations(List<Map> configurations) {
var startTime = new DateTime.now();
- var optionsParser = new TestOptionsParser();
- List<Map> configurations = optionsParser.parse(new Options().arguments);
- if (configurations == null || configurations.length == 0) return;
-
// Extract global options from first configuration.
var firstConf = configurations[0];
Map<String, RegExp> selectors = firstConf['selectors'];
@@ -227,3 +223,12 @@ main() {
Future.wait(serverFutures).then((_) => startProcessQueue());
}
}
+
+void main() {
+ var optionsParser = new TestOptionsParser();
+ var configurations = optionsParser.parse(new Options().arguments);
+ if (configurations != null || configurations.length > 0) {
+ testConfigurations(configurations);
+ }
+}
+
« no previous file with comments | « no previous file | tools/testing/dart/co19_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698