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

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

Issue 2901923003: Replace the configuration map with a typed object. (Closed)
Patch Set: Revise. Created 3 years, 6 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/launch_browser.dart ('k') | tools/testing/dart/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 file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /// This file is the entrypoint of the Dart repository's custom test system. 5 /// This file is the entrypoint of the Dart repository's custom test system.
6 /// It is used to test: 6 /// It is used to test:
7 /// 7 ///
8 /// 1. The Dart VM 8 /// 1. The Dart VM
9 /// 2. The dart2js compiler 9 /// 2. The dart2js compiler
10 /// 3. The static analyzer 10 /// 3. The static analyzer
(...skipping 16 matching lines...) Expand all
27 import "test_suite.dart"; 27 import "test_suite.dart";
28 28
29 /// Runs all of the tests specified by the given command line [arguments]. 29 /// Runs all of the tests specified by the given command line [arguments].
30 void main(List<String> arguments) { 30 void main(List<String> arguments) {
31 // This script is in "<repo>/tools/testing/dart". 31 // This script is in "<repo>/tools/testing/dart".
32 TestUtils.setDartDirUri(Platform.script.resolve('../../..')); 32 TestUtils.setDartDirUri(Platform.script.resolve('../../..'));
33 33
34 // Parse the command line arguments to a configuration. 34 // Parse the command line arguments to a configuration.
35 var parser = new OptionsParser(); 35 var parser = new OptionsParser();
36 var configurations = parser.parse(arguments); 36 var configurations = parser.parse(arguments);
37 if (configurations == null || configurations.isEmpty) return; 37 if (configurations.isEmpty) return;
38 38
39 // Run all of the configured tests. 39 // Run all of the configured tests.
40 // TODO(26372): Ensure that all tasks complete and return a future from this 40 // TODO(26372): Ensure that all tasks complete and return a future from this
41 // function. 41 // function.
42 testConfigurations(configurations); 42 testConfigurations(configurations);
43 } 43 }
OLDNEW
« no previous file with comments | « tools/testing/dart/launch_browser.dart ('k') | tools/testing/dart/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698