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

Side by Side Diff: test/run_all.dart

Issue 22962005: Merge pull request #581 from kevmoo/polymer (Closed) Base URL: https://github.com/dart-lang/web-ui.git@polymer
Patch Set: Created 7 years, 4 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 | « test/refactor_test.dart ('k') | test/testing.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:async'; 11 import 'dart:async';
12 import 'dart:io'; 12 import 'dart:io';
13 import 'dart:isolate'; 13 import 'dart:isolate';
14 import 'dart:math' show min; 14 import 'dart:math' show min;
15 import 'dart:utf' show encodeUtf8; 15 import 'dart:utf' show encodeUtf8;
16 import 'package:path/path.dart' as path; 16 import 'package:path/path.dart' as path;
17 import 'package:unittest/compact_vm_config.dart'; 17 import 'package:unittest/compact_vm_config.dart';
18 import 'package:unittest/unittest.dart'; 18 import 'package:unittest/unittest.dart';
19 import 'package:polymer/dwc.dart' as dwc; 19 import 'package:polymer/dwc.dart' as dwc;
20 import 'package:polymer/testing/content_shell_test.dart'; 20 import 'package:polymer/testing/content_shell_test.dart';
21 21
22 import 'css_test.dart' as css_test; 22 import 'css_test.dart' as css_test;
23 import 'compiler_test.dart' as compiler_test; 23 import 'compiler_test.dart' as compiler_test;
24 import 'paths_test.dart' as paths_test; 24 import 'paths_test.dart' as paths_test;
25 import 'refactor_test.dart' as refactor_test;
26 import 'utils_test.dart' as utils_test; 25 import 'utils_test.dart' as utils_test;
27 26
28 main() { 27 main() {
29 var args = new Options().arguments; 28 var args = new Options().arguments;
30 var pattern = new RegExp(args.length > 0 ? args[0] : '.'); 29 var pattern = new RegExp(args.length > 0 ? args[0] : '.');
31 30
32 useCompactVMConfiguration(); 31 useCompactVMConfiguration();
33 32
34 void addGroup(testFile, testMain) { 33 void addGroup(testFile, testMain) {
35 if (pattern.hasMatch(testFile)) { 34 if (pattern.hasMatch(testFile)) {
36 group(testFile.replaceAll('_test.dart', ':'), testMain); 35 group(testFile.replaceAll('_test.dart', ':'), testMain);
37 } 36 }
38 } 37 }
39 38
40 addGroup('compiler_test.dart', compiler_test.main); 39 addGroup('compiler_test.dart', compiler_test.main);
41 addGroup('css_test.dart', css_test.main); 40 addGroup('css_test.dart', css_test.main);
42 addGroup('paths_test.dart', paths_test.main); 41 addGroup('paths_test.dart', paths_test.main);
43 addGroup('refactor_test.dart', refactor_test.main);
44 addGroup('utils_test.dart', utils_test.main); 42 addGroup('utils_test.dart', utils_test.main);
45 43
46 // TODO(jmessery): consider restoring these where applicable. 44 // TODO(jmessery): consider restoring these where applicable.
47 // We'll probably want to use fancy-syntax support. 45 // We'll probably want to use fancy-syntax support.
48 //renderTests('data/input', 'data/input', 'data/expected', 'data/out', 46 //renderTests('data/input', 'data/input', 'data/expected', 'data/out',
49 // TODO(jmesserly): make these configurable 47 // TODO(jmesserly): make these configurable
50 // ['--no-js', '--no-shadowdom']..addAll(args)); 48 // ['--no-js', '--no-shadowdom']..addAll(args));
51 49
52 endToEndTests('data/unit/', 'data/out'); 50 endToEndTests('data/unit/', 'data/out');
53 51
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 arguments: args, pattern: pattern, deleteDir: deleteDirectory); 94 arguments: args, pattern: pattern, deleteDir: deleteDirectory);
97 } 95 }
98 96
99 void cssCompileShadowDOMTest(String path, String pattern, 97 void cssCompileShadowDOMTest(String path, String pattern,
100 [bool deleteDirectory = true]) { 98 [bool deleteDirectory = true]) {
101 var args = ['--no-css']; 99 var args = ['--no-css'];
102 renderTests(path, path, '$path/expected', '$path/out', 100 renderTests(path, path, '$path/expected', '$path/out',
103 arguments: args, pattern: pattern, 101 arguments: args, pattern: pattern,
104 deleteDir: deleteDirectory); 102 deleteDir: deleteDirectory);
105 } 103 }
OLDNEW
« no previous file with comments | « test/refactor_test.dart ('k') | test/testing.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698