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

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

Issue 16094004: Add safari browser controller. (Closed) Base URL: http://dart.googlecode.com/svn/trunk/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 1636 matching lines...) Expand 10 before | Expand all | Expand 10 after
1647 if (_numProcesses < _maxProcesses && !_tests.isEmpty) { 1647 if (_numProcesses < _maxProcesses && !_tests.isEmpty) {
1648 TestCase test = _tests.removeFirst(); 1648 TestCase test = _tests.removeFirst();
1649 if (_listTests) { 1649 if (_listTests) {
1650 var fields = [test.displayName, 1650 var fields = [test.displayName,
1651 test.expectedOutcomes.join(','), 1651 test.expectedOutcomes.join(','),
1652 test.isNegative.toString()]; 1652 test.isNegative.toString()];
1653 fields.addAll(test.commands.last.arguments); 1653 fields.addAll(test.commands.last.arguments);
1654 print(fields.join('\t')); 1654 print(fields.join('\t'));
1655 return; 1655 return;
1656 } 1656 }
1657 if (test.usesWebDriver && _needsSelenium && !_isSeleniumAvailable || 1657
1658 if (test.usesWebDriver && _needsSelenium && !test.usesBrowserController
1659 && !_isSeleniumAvailable ||
1658 (test is BrowserTestCase && test.waitingForOtherTest)) { 1660 (test is BrowserTestCase && test.waitingForOtherTest)) {
1659 // The test is not yet ready to run. Put the test back in 1661 // The test is not yet ready to run. Put the test back in
1660 // the queue. Avoid spin-polling by using a timeout. 1662 // the queue. Avoid spin-polling by using a timeout.
1661 _tests.add(test); 1663 _tests.add(test);
1662 new Timer(new Duration(milliseconds: 100), 1664 new Timer(new Duration(milliseconds: 100),
1663 _tryRunTest); // Don't lose a process. 1665 _tryRunTest); // Don't lose a process.
1664 return; 1666 return;
1665 } 1667 }
1666 // Before running any commands, we print out all commands if '--verbose' 1668 // Before running any commands, we print out all commands if '--verbose'
1667 // was specified. 1669 // was specified.
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1859 } 1861 }
1860 } 1862 }
1861 1863
1862 void eventAllTestsDone() { 1864 void eventAllTestsDone() {
1863 for (var listener in _eventListener) { 1865 for (var listener in _eventListener) {
1864 listener.allDone(); 1866 listener.allDone();
1865 } 1867 }
1866 } 1868 }
1867 } 1869 }
1868 1870
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