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

Side by Side Diff: tools/testing/dart/package_testing_support.dart

Issue 2902023002: Refactor test option parsing code. (Closed)
Patch Set: Remove cps_ir stuff. Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « tools/testing/dart/options.dart ('k') | tools/testing/dart/test_options.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 library package_testing_support; 5 library package_testing_support;
6 6
7 import 'test_configurations.dart' show testConfigurations; 7 import 'options.dart';
8 8 import 'test_configurations.dart';
9 import 'test_options.dart' show TestOptionsParser; 9 import 'test_suite.dart';
10
11 import 'test_suite.dart' show TestUtils;
12 10
13 void main(List<String> arguments) { 11 void main(List<String> arguments) {
14 TestUtils.setDartDirUri(Uri.base); 12 TestUtils.setDartDirUri(Uri.base);
15 var configurations = <Map>[]; 13 var configurations = <Map>[];
16 for (var argument in arguments) { 14 for (var argument in arguments) {
17 configurations.addAll(new TestOptionsParser().parse(argument.split(" "))); 15 configurations.addAll(new OptionsParser().parse(argument.split(" ")));
18 } 16 }
19 testConfigurations(configurations); 17 testConfigurations(configurations);
20 } 18 }
OLDNEW
« no previous file with comments | « tools/testing/dart/options.dart ('k') | tools/testing/dart/test_options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698