| 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 1829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1840 | 1840 |
| 1841 return completer.future; | 1841 return completer.future; |
| 1842 } | 1842 } |
| 1843 | 1843 |
| 1844 Future<BrowserTestRunner> _getBrowserTestRunner(String browser) { | 1844 Future<BrowserTestRunner> _getBrowserTestRunner(String browser) { |
| 1845 var local_ip = globalConfiguration['local_ip']; | 1845 var local_ip = globalConfiguration['local_ip']; |
| 1846 var num_browsers = maxBrowserProcesses; | 1846 var num_browsers = maxBrowserProcesses; |
| 1847 if (_browserTestRunners[browser] == null) { | 1847 if (_browserTestRunners[browser] == null) { |
| 1848 var testRunner = | 1848 var testRunner = |
| 1849 new BrowserTestRunner(local_ip, browser, num_browsers); | 1849 new BrowserTestRunner(local_ip, browser, num_browsers); |
| 1850 testRunner.logger = DebugLogger.info; | 1850 if (globalConfiguration['verbose']) { |
| 1851 testRunner.logger = DebugLogger.info; |
| 1852 } |
| 1851 _browserTestRunners[browser] = testRunner; | 1853 _browserTestRunners[browser] = testRunner; |
| 1852 return testRunner.start().then((started) { | 1854 return testRunner.start().then((started) { |
| 1853 if (started) { | 1855 if (started) { |
| 1854 return testRunner; | 1856 return testRunner; |
| 1855 } | 1857 } |
| 1856 print("Issue starting browser test runner"); | 1858 print("Issue starting browser test runner"); |
| 1857 io.exit(1); | 1859 io.exit(1); |
| 1858 }); | 1860 }); |
| 1859 } | 1861 } |
| 1860 return new Future.value(_browserTestRunners[browser]); | 1862 return new Future.value(_browserTestRunners[browser]); |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2140 } | 2142 } |
| 2141 } | 2143 } |
| 2142 | 2144 |
| 2143 void eventAllTestsDone() { | 2145 void eventAllTestsDone() { |
| 2144 for (var listener in _eventListener) { | 2146 for (var listener in _eventListener) { |
| 2145 listener.allDone(); | 2147 listener.allDone(); |
| 2146 } | 2148 } |
| 2147 _allDone(); | 2149 _allDone(); |
| 2148 } | 2150 } |
| 2149 } | 2151 } |
| OLD | NEW |