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

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

Issue 25876002: test.py: Propagate the global --dartium option to the browser controller (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
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 2055 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698