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

Side by Side Diff: tools/testing/dart/test_runner.dart

Issue 12114027: If we made progress, add testCases to the front of the queue in test_runner.dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698