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

Side by Side Diff: lib/src/runner/configuration/args.dart

Issue 1704183002: pkg/test: cleanup imports (Closed) Base URL: https://github.com/dart-lang/test.git@master
Patch Set: Created 4 years, 10 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 | « lib/src/runner/configuration.dart ('k') | lib/src/runner/configuration/load.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 import 'dart:io'; 5 import 'dart:io';
6 6
7 import 'package:args/args.dart'; 7 import 'package:args/args.dart';
8 8
9 import '../../backend/test_platform.dart';
9 import '../../frontend/timeout.dart'; 10 import '../../frontend/timeout.dart';
10 import '../../backend/test_platform.dart';
11 import '../../utils.dart'; 11 import '../../utils.dart';
12 import '../configuration.dart'; 12 import '../configuration.dart';
13 import 'values.dart'; 13 import 'values.dart';
14 14
15 /// The parser used to parse the command-line arguments. 15 /// The parser used to parse the command-line arguments.
16 final ArgParser _parser = (() { 16 final ArgParser _parser = (() {
17 var parser = new ArgParser(allowTrailingOptions: true); 17 var parser = new ArgParser(allowTrailingOptions: true);
18 18
19 var allPlatforms = TestPlatform.all.toList(); 19 var allPlatforms = TestPlatform.all.toList();
20 if (!Platform.isMacOS) allPlatforms.remove(TestPlatform.safari); 20 if (!Platform.isMacOS) allPlatforms.remove(TestPlatform.safari);
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 var value = options[name]; 168 var value = options[name];
169 if (value == null) return null; 169 if (value == null) return null;
170 170
171 try { 171 try {
172 return parse(value); 172 return parse(value);
173 } on FormatException catch (error) { 173 } on FormatException catch (error) {
174 throw new FormatException('Couldn\'t parse --$name "${options[name]}": ' 174 throw new FormatException('Couldn\'t parse --$name "${options[name]}": '
175 '${error.message}'); 175 '${error.message}');
176 } 176 }
177 } 177 }
OLDNEW
« no previous file with comments | « lib/src/runner/configuration.dart ('k') | lib/src/runner/configuration/load.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698