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

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

Issue 15825004: Use the Debug log for messages from the browser controller (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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 | « tools/testing/dart/browser_controller.dart ('k') | 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 1630 matching lines...) Expand 10 before | Expand all | Expand 10 after
1641 throw new Exception('Unable to find inactive batch runner.'); 1641 throw new Exception('Unable to find inactive batch runner.');
1642 } 1642 }
1643 1643
1644 Future<BrowserTestRunner> _getBrowserTestRunner(TestCase test) { 1644 Future<BrowserTestRunner> _getBrowserTestRunner(TestCase test) {
1645 var local_ip = test.configuration['local_ip']; 1645 var local_ip = test.configuration['local_ip'];
1646 var runtime = test.configuration['runtime']; 1646 var runtime = test.configuration['runtime'];
1647 var num_browsers = test.configuration['tasks']; 1647 var num_browsers = test.configuration['tasks'];
1648 if (_browserTestRunners[runtime] == null) { 1648 if (_browserTestRunners[runtime] == null) {
1649 var testRunner = 1649 var testRunner =
1650 new BrowserTestRunner(local_ip, runtime, num_browsers); 1650 new BrowserTestRunner(local_ip, runtime, num_browsers);
1651 testRunner.logger = DebugLogger.info;
1651 _browserTestRunners[runtime] = testRunner; 1652 _browserTestRunners[runtime] = testRunner;
1652 return testRunner.start().then((started) { 1653 return testRunner.start().then((started) {
1653 if (started) { 1654 if (started) {
1654 return testRunner; 1655 return testRunner;
1655 } 1656 }
1656 print("Issue starting browser test runner"); 1657 print("Issue starting browser test runner");
1657 io.exit(1); 1658 io.exit(1);
1658 }); 1659 });
1659 } 1660 }
1660 return new Future.immediate(_browserTestRunners[runtime]); 1661 return new Future.immediate(_browserTestRunners[runtime]);
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
1907 } 1908 }
1908 } 1909 }
1909 1910
1910 void eventAllTestsDone() { 1911 void eventAllTestsDone() {
1911 for (var listener in _eventListener) { 1912 for (var listener in _eventListener) {
1912 listener.allDone(); 1913 listener.allDone();
1913 } 1914 }
1914 } 1915 }
1915 } 1916 }
1916 1917
OLDNEW
« no previous file with comments | « tools/testing/dart/browser_controller.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698