OLD | NEW |
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'; | |
14 import 'dart:math' show min; | 13 import 'dart:math' show min; |
15 import 'dart:utf' show encodeUtf8; | 14 import 'dart:utf' show encodeUtf8; |
16 import 'package:pathos/path.dart' as path; | 15 import 'package:pathos/path.dart' as path; |
17 import 'package:unittest/compact_vm_config.dart'; | 16 import 'package:unittest/compact_vm_config.dart'; |
18 import 'package:unittest/unittest.dart'; | 17 import 'package:unittest/unittest.dart'; |
19 import 'package:web_ui/dwc.dart' as dwc; | 18 import 'package:web_ui/dwc.dart' as dwc; |
20 import 'package:web_ui/testing/render_test.dart'; | 19 import 'package:web_ui/testing/render_test.dart'; |
21 | 20 |
22 import 'analyzer_test.dart' as analyzer_test; | 21 import 'analyzer_test.dart' as analyzer_test; |
23 import 'css_test.dart' as css_test; | 22 import 'css_test.dart' as css_test; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 arguments: args, pattern: pattern, deleteDir: deleteDirectory); | 101 arguments: args, pattern: pattern, deleteDir: deleteDirectory); |
103 } | 102 } |
104 | 103 |
105 void cssCompileShadowDOMTest(String path, String pattern, | 104 void cssCompileShadowDOMTest(String path, String pattern, |
106 [bool deleteDirectory = true]) { | 105 [bool deleteDirectory = true]) { |
107 var args = ['--no-css']; | 106 var args = ['--no-css']; |
108 renderTests(path, path, '$path/expected', '$path/out', | 107 renderTests(path, path, '$path/expected', '$path/out', |
109 arguments: args, pattern: pattern, | 108 arguments: args, pattern: pattern, |
110 deleteDir: deleteDirectory); | 109 deleteDir: deleteDirectory); |
111 } | 110 } |
OLD | NEW |