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

Side by Side Diff: tests/standalone/io/test_runner_test.dart

Issue 2915843003: Simplify test_suite.dart. (Closed)
Patch Set: Fix path in test. Created 3 years, 6 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
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « tests/standalone/io/skipping_dart2js_compilations_test.dart ('k') | tools/testing/dart/co19_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698