Chromium Code Reviews| 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 * Classes and methods for executing tests. | 6 * Classes and methods for executing tests. |
| 7 * | 7 * |
| 8 * This module includes: | 8 * This module includes: |
| 9 * - Managing parallel execution of tests, including timeout checks. | 9 * - Managing parallel execution of tests, including timeout checks. |
| 10 * - Evaluating the output of each test as pass/fail/crash/timeout. | 10 * - Evaluating the output of each test as pass/fail/crash/timeout. |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 147 CompilationCommand._(String displayName, | 147 CompilationCommand._(String displayName, |
| 148 this._outputFile, | 148 this._outputFile, |
| 149 this._neverSkipCompilation, | 149 this._neverSkipCompilation, |
| 150 this._bootstrapDependencies, | 150 this._bootstrapDependencies, |
| 151 String executable, | 151 String executable, |
| 152 List<String> arguments, | 152 List<String> arguments, |
| 153 Map<String, String> environmentOverrides) | 153 Map<String, String> environmentOverrides) |
| 154 : super._(displayName, executable, arguments, environmentOverrides); | 154 : super._(displayName, executable, arguments, environmentOverrides); |
| 155 | 155 |
| 156 Future<bool> get outputIsUpToDate { | 156 Future<bool> get outputIsUpToDate { |
| 157 if (_neverSkipCompilation) return new Future.value(false); | 157 if (true) return new Future.value(false); |
|
floitsch
2014/12/17 09:55:25
debug?
ricow1
2014/12/17 09:57:14
yes, thanks
| |
| 158 | 158 |
| 159 Future<List<Uri>> readDepsFile(String path) { | 159 Future<List<Uri>> readDepsFile(String path) { |
| 160 var file = new io.File(new Path(path).toNativePath()); | 160 var file = new io.File(new Path(path).toNativePath()); |
| 161 if (!file.existsSync()) { | 161 if (!file.existsSync()) { |
| 162 return new Future.value(null); | 162 return new Future.value(null); |
| 163 } | 163 } |
| 164 return file.readAsLines().then((List<String> lines) { | 164 return file.readAsLines().then((List<String> lines) { |
| 165 var dependencies = new List<Uri>(); | 165 var dependencies = new List<Uri>(); |
| 166 for (var line in lines) { | 166 for (var line in lines) { |
| 167 line = line.trim(); | 167 line = line.trim(); |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 286 identical(configuration, other.configuration) && | 286 identical(configuration, other.configuration) && |
| 287 retry == other.retry; | 287 retry == other.retry; |
| 288 | 288 |
| 289 String get reproductionCommand { | 289 String get reproductionCommand { |
| 290 var parts = [TestUtils.dartTestExecutable.toString(), | 290 var parts = [TestUtils.dartTestExecutable.toString(), |
| 291 'tools/testing/dart/launch_browser.dart', | 291 'tools/testing/dart/launch_browser.dart', |
| 292 browser, | 292 browser, |
| 293 url]; | 293 url]; |
| 294 return parts.map(escapeCommandLineArgument).join(' '); | 294 return parts.map(escapeCommandLineArgument).join(' '); |
| 295 } | 295 } |
| 296 | |
| 297 int get maxNumRetries => 4; | |
| 296 } | 298 } |
| 297 | 299 |
| 298 class BrowserHtmlTestCommand extends BrowserTestCommand { | 300 class BrowserHtmlTestCommand extends BrowserTestCommand { |
| 299 List<String> expectedMessages; | 301 List<String> expectedMessages; |
| 300 BrowserHtmlTestCommand._(String browser, | 302 BrowserHtmlTestCommand._(String browser, |
| 301 String url, | 303 String url, |
| 302 Map configuration, | 304 Map configuration, |
| 303 this.expectedMessages, | 305 this.expectedMessages, |
| 304 bool retry) | 306 bool retry) |
| 305 : super._(browser, url, configuration, retry); | 307 : super._(browser, url, configuration, retry); |
| (...skipping 2642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2948 } | 2950 } |
| 2949 } | 2951 } |
| 2950 | 2952 |
| 2951 void eventAllTestsDone() { | 2953 void eventAllTestsDone() { |
| 2952 for (var listener in _eventListener) { | 2954 for (var listener in _eventListener) { |
| 2953 listener.allDone(); | 2955 listener.allDone(); |
| 2954 } | 2956 } |
| 2955 _allDone(); | 2957 _allDone(); |
| 2956 } | 2958 } |
| 2957 } | 2959 } |
| OLD | NEW |