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

Side by Side Diff: pkg/source_maps/test/run.dart

Issue 52573002: Remove uses of Options from pkg, samples, tests, and third_party directories. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Edit comment Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env dart 1 #!/usr/bin/env dart
2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
3 // for details. All rights reserved. Use of this source code is governed by a 3 // for details. All rights reserved. Use of this source code is governed by a
4 // BSD-style license that can be found in the LICENSE file. 4 // BSD-style license that can be found in the LICENSE file.
5 5
6 library test.run; 6 library test.run;
7 7
8 import 'package:unittest/compact_vm_config.dart'; 8 import 'package:unittest/compact_vm_config.dart';
9 import 'package:unittest/unittest.dart'; 9 import 'package:unittest/unittest.dart';
10 import 'dart:io' show Options; 10 import 'dart:io' show Options;
11 11
12 import 'builder_test.dart' as builder_test; 12 import 'builder_test.dart' as builder_test;
13 import 'end2end_test.dart' as end2end_test; 13 import 'end2end_test.dart' as end2end_test;
14 import 'parser_test.dart' as parser_test; 14 import 'parser_test.dart' as parser_test;
15 import 'printer_test.dart' as printer_test; 15 import 'printer_test.dart' as printer_test;
16 import 'refactor_test.dart' as refactor_test; 16 import 'refactor_test.dart' as refactor_test;
17 import 'span_test.dart' as span_test; 17 import 'span_test.dart' as span_test;
18 import 'utils_test.dart' as utils_test; 18 import 'utils_test.dart' as utils_test;
19 import 'vlq_test.dart' as vlq_test; 19 import 'vlq_test.dart' as vlq_test;
20 20
21 main() { 21 main(List<String> arguments) {
22 var args = new Options().arguments; 22 var pattern = new RegExp(arguments.length > 0 ? arguments[0] : '.');
23 var pattern = new RegExp(args.length > 0 ? args[0] : '.');
24 useCompactVMConfiguration(); 23 useCompactVMConfiguration();
25 24
26 void addGroup(testFile, testMain) { 25 void addGroup(testFile, testMain) {
27 if (pattern.hasMatch(testFile)) { 26 if (pattern.hasMatch(testFile)) {
28 group(testFile.replaceAll('_test.dart', ':'), testMain); 27 group(testFile.replaceAll('_test.dart', ':'), testMain);
29 } 28 }
30 } 29 }
31 30
32 addGroup('builder_test.dart', builder_test.main); 31 addGroup('builder_test.dart', builder_test.main);
33 addGroup('end2end_test.dart', end2end_test.main); 32 addGroup('end2end_test.dart', end2end_test.main);
34 addGroup('parser_test.dart', parser_test.main); 33 addGroup('parser_test.dart', parser_test.main);
35 addGroup('printer_test.dart', printer_test.main); 34 addGroup('printer_test.dart', printer_test.main);
36 addGroup('refactor_test.dart', refactor_test.main); 35 addGroup('refactor_test.dart', refactor_test.main);
37 addGroup('span_test.dart', span_test.main); 36 addGroup('span_test.dart', span_test.main);
38 addGroup('utils_test.dart', utils_test.main); 37 addGroup('utils_test.dart', utils_test.main);
39 addGroup('vlq_test.dart', vlq_test.main); 38 addGroup('vlq_test.dart', vlq_test.main);
40 } 39 }
OLDNEW
« no previous file with comments | « pkg/intl/test/message_extraction/make_hardcoded_translation.dart ('k') | pkg/third_party/html5lib/test/run_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698