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 1647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1658 runNextCommandWithRetries(test, allowRetry).then((TestCase testCase) { | 1658 runNextCommandWithRetries(test, allowRetry).then((TestCase testCase) { |
| 1659 _numProcesses--; | 1659 _numProcesses--; |
| 1660 if (isBrowserCommand) { | 1660 if (isBrowserCommand) { |
| 1661 _numBrowserProcesses--; | 1661 _numBrowserProcesses--; |
| 1662 } | 1662 } |
| 1663 if (isTestCaseFinished(testCase)) { | 1663 if (isTestCaseFinished(testCase)) { |
| 1664 testCase.completed(); | 1664 testCase.completed(); |
| 1665 _progress.done(testCase); | 1665 _progress.done(testCase); |
| 1666 if (testCase is BrowserTestCase) testCase.notifyObservers(); | 1666 if (testCase is BrowserTestCase) testCase.notifyObservers(); |
| 1667 } else { | 1667 } else { |
| 1668 _tests.add(testCase); | 1668 _tests.addFirst(testCase); |
|
ngeoffray
2013/01/31 12:56:31
I thought you could not do this because if it's an
kustermann
2013/01/31 13:01:17
Well, I was kind of stupid. It's save to put it in
| |
| 1669 } | 1669 } |
| 1670 _tryRunTest(); | 1670 _tryRunTest(); |
| 1671 }); | 1671 }); |
| 1672 } | 1672 } |
| 1673 | 1673 |
| 1674 _numProcesses++; | 1674 _numProcesses++; |
| 1675 if (isBrowserCommand) { | 1675 if (isBrowserCommand) { |
| 1676 _numBrowserProcesses++; | 1676 _numBrowserProcesses++; |
| 1677 } | 1677 } |
| 1678 } | 1678 } |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1749 completer.complete(testCase); | 1749 completer.complete(testCase); |
| 1750 } | 1750 } |
| 1751 }); | 1751 }); |
| 1752 } | 1752 } |
| 1753 runCommand(); | 1753 runCommand(); |
| 1754 | 1754 |
| 1755 return completer.future; | 1755 return completer.future; |
| 1756 } | 1756 } |
| 1757 } | 1757 } |
| 1758 | 1758 |
| OLD | NEW |