OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 import "dart:async"; | 6 import "dart:async"; |
7 import "../../../tools/testing/dart/configuration.dart"; | 7 import "../../../tools/testing/dart/configuration.dart"; |
8 import "../../../tools/testing/dart/expectation.dart"; | 8 import "../../../tools/testing/dart/expectation.dart"; |
9 import "../../../tools/testing/dart/options.dart"; | 9 import "../../../tools/testing/dart/options.dart"; |
10 import "../../../tools/testing/dart/test_runner.dart"; | 10 import "../../../tools/testing/dart/test_runner.dart"; |
11 import "../../../tools/testing/dart/test_suite.dart"; | 11 import "../../../tools/testing/dart/test_suite.dart"; |
12 import "../../../tools/testing/dart/test_progress.dart" as progress; | 12 import "../../../tools/testing/dart/test_progress.dart" as progress; |
| 13 import "../../../tools/testing/dart/utils.dart"; |
13 import "process_test_util.dart"; | 14 import "process_test_util.dart"; |
14 | 15 |
15 final DEFAULT_TIMEOUT = 20; | 16 final DEFAULT_TIMEOUT = 20; |
16 final LONG_TIMEOUT = 30; | 17 final LONG_TIMEOUT = 30; |
17 | 18 |
18 List<String> packageOptions() { | 19 List<String> packageOptions() { |
19 if (Platform.packageRoot != null) { | 20 if (Platform.packageRoot != null) { |
20 return <String>['--package-root=${Platform.packageRoot}']; | 21 return <String>['--package-root=${Platform.packageRoot}']; |
21 } else if (Platform.packageConfig != null) { | 22 } else if (Platform.packageConfig != null) { |
22 return <String>['--packages=${Platform.packageConfig}']; | 23 return <String>['--packages=${Platform.packageConfig}']; |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 break; | 158 break; |
158 case 'timeout': | 159 case 'timeout': |
159 // This process should be killed by the test after DEFAULT_TIMEOUT | 160 // This process should be killed by the test after DEFAULT_TIMEOUT |
160 new Timer(new Duration(hours: 42), () {}); | 161 new Timer(new Duration(hours: 42), () {}); |
161 break; | 162 break; |
162 default: | 163 default: |
163 throw "Unknown option ${arguments[0]} passed to test_runner_test"; | 164 throw "Unknown option ${arguments[0]} passed to test_runner_test"; |
164 } | 165 } |
165 } | 166 } |
166 } | 167 } |
OLD | NEW |