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

Side by Side Diff: pkg/csslib/test/run_all.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
« no previous file with comments | « pkg/csslib/lib/css.dart ('k') | pkg/docgen/bin/docgen.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 /** 5 /**
6 * This is a helper for run.sh. We try to run all of the Dart code in one 6 * This is a helper for run.sh. We try to run all of the Dart code in one
7 * instance of the Dart VM to reduce warm-up time. 7 * instance of the Dart VM to reduce warm-up time.
8 */ 8 */
9 library run_impl; 9 library run_impl;
10 10
11 import 'dart:io'; 11 import 'dart:io';
12 import 'package:unittest/compact_vm_config.dart'; 12 import 'package:unittest/compact_vm_config.dart';
13 import 'testing.dart'; 13 import 'testing.dart';
14 14
15 import 'compiler_test.dart' as compiler_test; 15 import 'compiler_test.dart' as compiler_test;
16 import 'declaration_test.dart' as declaration_test; 16 import 'declaration_test.dart' as declaration_test;
17 import 'var_test.dart' as var_test; 17 import 'var_test.dart' as var_test;
18 import 'nested_test.dart' as nested_test; 18 import 'nested_test.dart' as nested_test;
19 import 'error_test.dart' as error_test; 19 import 'error_test.dart' as error_test;
20 import 'selector_test.dart' as selector_test; 20 import 'selector_test.dart' as selector_test;
21 import 'visitor_test.dart' as visitor_test; 21 import 'visitor_test.dart' as visitor_test;
22 import 'mixin_test.dart' as mixin_test; 22 import 'mixin_test.dart' as mixin_test;
23 import 'extend_test.dart' as extend_test; 23 import 'extend_test.dart' as extend_test;
24 import 'big_1_test.dart' as big_1_test; 24 import 'big_1_test.dart' as big_1_test;
25 25
26 main() { 26 main(List<String> arguments) {
27 var args = new Options().arguments; 27 var pattern = new RegExp(arguments.length > 0 ? arguments[0] : '.');
28
29 var pattern = new RegExp(args.length > 0 ? args[0] : '.');
30 28
31 useCompactVMConfiguration(); 29 useCompactVMConfiguration();
32 useMockMessages(); 30 useMockMessages();
33 31
34 if (pattern.hasMatch('compiler_test.dart')) compiler_test.main(); 32 if (pattern.hasMatch('compiler_test.dart')) compiler_test.main();
35 if (pattern.hasMatch('declaration_test.dart')) declaration_test.main(); 33 if (pattern.hasMatch('declaration_test.dart')) declaration_test.main();
36 if (pattern.hasMatch('var_test.dart')) var_test.main(); 34 if (pattern.hasMatch('var_test.dart')) var_test.main();
37 if (pattern.hasMatch('nested_test.dart')) nested_test.main(); 35 if (pattern.hasMatch('nested_test.dart')) nested_test.main();
38 if (pattern.hasMatch('selector_test.dart')) selector_test.main(); 36 if (pattern.hasMatch('selector_test.dart')) selector_test.main();
39 if (pattern.hasMatch('mixin_test.dart')) mixin_test.main(); 37 if (pattern.hasMatch('mixin_test.dart')) mixin_test.main();
40 if (pattern.hasMatch('extend_test.dart')) extend_test.main(); 38 if (pattern.hasMatch('extend_test.dart')) extend_test.main();
41 if (pattern.hasMatch('big_1_test.dart')) big_1_test.main(); 39 if (pattern.hasMatch('big_1_test.dart')) big_1_test.main();
42 if (pattern.hasMatch('visitor_test.dart')) visitor_test.main(); 40 if (pattern.hasMatch('visitor_test.dart')) visitor_test.main();
43 if (pattern.hasMatch('error_test.dart')) error_test.main(); 41 if (pattern.hasMatch('error_test.dart')) error_test.main();
44 } 42 }
OLDNEW
« no previous file with comments | « pkg/csslib/lib/css.dart ('k') | pkg/docgen/bin/docgen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698