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

Unified Diff: tools/testing/dart/co19_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 | « tools/test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/co19_test.dart
diff --git a/tools/testing/dart/co19_test.dart b/tools/testing/dart/co19_test.dart
index 8b02ed164d47720d1208022b4314b5a490604377..f2ec040f38f2bcb5f435cc5e60578658e8243b9f 100644
--- a/tools/testing/dart/co19_test.dart
+++ b/tools/testing/dart/co19_test.dart
@@ -21,6 +21,7 @@ import "test_runner.dart";
import "test_options.dart";
import "test_suite.dart";
import "test_progress.dart";
+import "../../test.dart" as test_dart;
import "../../../tests/co19/test_config.dart";
@@ -41,7 +42,6 @@ void main() {
new Path(scriptFile.fullPathSync())
.directoryPath.directoryPath.directoryPath.append('test.dart');
TestUtils.testScriptPath = scriptPath.toNativePath();
- var startTime = new DateTime.now();
var optionsParser = new TestOptionsParser();
List<Map> configurations = <Map>[];
for (var commandLine in COMMAND_LINES) {
@@ -50,36 +50,12 @@ void main() {
arguments.addAll(options.arguments);
arguments.addAll(commandLine);
arguments.add('co19');
+ arguments.add('--progress=diff');
configurations.addAll(optionsParser.parse(arguments));
}
- if (configurations == null || configurations.isEmpty) return;
- var firstConfiguration = configurations[0];
- Map<String, RegExp> selectors = firstConfiguration['selectors'];
- var maxProcesses = firstConfiguration['tasks'];
- var verbose = firstConfiguration['verbose'];
- var listTests = firstConfiguration['list'];
-
- var configurationIterator = configurations.iterator;
- void enqueueConfiguration(ProcessQueue queue) {
- if (!configurationIterator.moveNext()) return;
- var configuration = configurationIterator.current;
- for (String selector in selectors.keys) {
- if (selector == 'co19') {
- queue.addTestSuite(new Co19TestSuite(configuration));
- } else {
- throw 'Error: unexpected selector: "$selector".';
- }
- }
+ if (configurations != null || configurations.length > 0) {
+ test_dart.testConfigurations(configurations);
}
-
- // Start process queue.
- var queue = new ProcessQueue(maxProcesses,
- 'diff',
- startTime,
- false,
- enqueueConfiguration,
- () {},
- verbose,
- listTests);
}
+
« no previous file with comments | « tools/test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698