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 2055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2066 callback, | 2066 callback, |
| 2067 timeout); | 2067 timeout); |
| 2068 _getBrowserTestRunner(browserCommand.browser).then((testRunner) { | 2068 _getBrowserTestRunner(browserCommand.browser).then((testRunner) { |
| 2069 testRunner.queueTest(browserTest); | 2069 testRunner.queueTest(browserTest); |
| 2070 }); | 2070 }); |
| 2071 | 2071 |
| 2072 return completer.future; | 2072 return completer.future; |
| 2073 } | 2073 } |
| 2074 | 2074 |
| 2075 Future<BrowserTestRunner> _getBrowserTestRunner(String browser) { | 2075 Future<BrowserTestRunner> _getBrowserTestRunner(String browser) { |
| 2076 var local_ip = globalConfiguration['local_ip']; | 2076 var local_ip = globalConfiguration['local_ip']; |
|
kasperl
2013/10/03 14:14:18
localIp?
kustermann
2013/10/03 14:48:22
Done.
| |
| 2077 var num_browsers = maxBrowserProcesses; | 2077 var num_browsers = maxBrowserProcesses; |
| 2078 if (_browserTestRunners[browser] == null) { | 2078 if (_browserTestRunners[browser] == null) { |
| 2079 var testRunner = | 2079 var testRunner = |
| 2080 new BrowserTestRunner(local_ip, browser, num_browsers); | 2080 new BrowserTestRunner( |
| 2081 globalConfiguration, local_ip, browser, num_browsers); | |
| 2081 if (globalConfiguration['verbose']) { | 2082 if (globalConfiguration['verbose']) { |
| 2082 testRunner.logger = DebugLogger.info; | 2083 testRunner.logger = DebugLogger.info; |
| 2083 } | 2084 } |
| 2084 _browserTestRunners[browser] = testRunner; | 2085 _browserTestRunners[browser] = testRunner; |
| 2085 return testRunner.start().then((started) { | 2086 return testRunner.start().then((started) { |
| 2086 if (started) { | 2087 if (started) { |
| 2087 return testRunner; | 2088 return testRunner; |
| 2088 } | 2089 } |
| 2089 print("Issue starting browser test runner"); | 2090 print("Issue starting browser test runner"); |
| 2090 io.exit(1); | 2091 io.exit(1); |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2366 } | 2367 } |
| 2367 } | 2368 } |
| 2368 | 2369 |
| 2369 void eventAllTestsDone() { | 2370 void eventAllTestsDone() { |
| 2370 for (var listener in _eventListener) { | 2371 for (var listener in _eventListener) { |
| 2371 listener.allDone(); | 2372 listener.allDone(); |
| 2372 } | 2373 } |
| 2373 _allDone(); | 2374 _allDone(); |
| 2374 } | 2375 } |
| 2375 } | 2376 } |
| OLD | NEW |