| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 return readDepsFile("$_outputFile.deps").then((dependencies) { | 154 return readDepsFile("$_outputFile.deps").then((dependencies) { |
| 155 if (dependencies != null) { | 155 if (dependencies != null) { |
| 156 dependencies.addAll(_bootstrapDependencies); | 156 dependencies.addAll(_bootstrapDependencies); |
| 157 var jsOutputLastModified = TestUtils.lastModifiedCache.getLastModified( | 157 var jsOutputLastModified = TestUtils.lastModifiedCache.getLastModified( |
| 158 new Uri.fromComponents(scheme: 'file', path: _outputFile)); | 158 new Uri.fromComponents(scheme: 'file', path: _outputFile)); |
| 159 if (jsOutputLastModified != null) { | 159 if (jsOutputLastModified != null) { |
| 160 for (var dependency in dependencies) { | 160 for (var dependency in dependencies) { |
| 161 var dependencyLastModified = | 161 var dependencyLastModified = |
| 162 TestUtils.lastModifiedCache.getLastModified(dependency); | 162 TestUtils.lastModifiedCache.getLastModified(dependency); |
| 163 if (dependencyLastModified == null || | 163 if (dependencyLastModified == null || |
| 164 dependencyLastModified > jsOutputLastModified) { | 164 dependencyLastModified.isAfter(jsOutputLastModified)) { |
| 165 return false; | 165 return false; |
| 166 } | 166 } |
| 167 } | 167 } |
| 168 return true; | 168 return true; |
| 169 } | 169 } |
| 170 } | 170 } |
| 171 return false; | 171 return false; |
| 172 }); | 172 }); |
| 173 } | 173 } |
| 174 } | 174 } |
| (...skipping 1548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1723 } | 1723 } |
| 1724 } | 1724 } |
| 1725 | 1725 |
| 1726 void eventAllTestsDone() { | 1726 void eventAllTestsDone() { |
| 1727 for (var listener in _eventListener) { | 1727 for (var listener in _eventListener) { |
| 1728 listener.allDone(); | 1728 listener.allDone(); |
| 1729 } | 1729 } |
| 1730 } | 1730 } |
| 1731 } | 1731 } |
| 1732 | 1732 |
| OLD | NEW |