| 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 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1408 print(" Error: $e"); | 1408 print(" Error: $e"); |
| 1409 // TODO(ahe): How to report this as a test failure? | 1409 // TODO(ahe): How to report this as a test failure? |
| 1410 io.exit(1); | 1410 io.exit(1); |
| 1411 return true; | 1411 return true; |
| 1412 }); | 1412 }); |
| 1413 } | 1413 } |
| 1414 } | 1414 } |
| 1415 | 1415 |
| 1416 void _runTest(TestCase test) { | 1416 void _runTest(TestCase test) { |
| 1417 if (test.usesWebDriver) { | 1417 if (test.usesWebDriver) { |
| 1418 browserUsed = test.configuration['browser']; | 1418 browserUsed = test.configuration['runtime']; |
| 1419 if (_needsSelenium) _ensureSeleniumServerRunning(); | 1419 if (_needsSelenium) _ensureSeleniumServerRunning(); |
| 1420 } | 1420 } |
| 1421 eventTestAdded(test); | 1421 eventTestAdded(test); |
| 1422 _tests.add(test); | 1422 _tests.add(test); |
| 1423 _tryRunTest(); | 1423 _tryRunTest(); |
| 1424 } | 1424 } |
| 1425 | 1425 |
| 1426 /** | 1426 /** |
| 1427 * Monitor the output of the Selenium server, to know when we are ready to | 1427 * Monitor the output of the Selenium server, to know when we are ready to |
| 1428 * begin running tests. | 1428 * begin running tests. |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1722 } | 1722 } |
| 1723 } | 1723 } |
| 1724 | 1724 |
| 1725 void eventAllTestsDone() { | 1725 void eventAllTestsDone() { |
| 1726 for (var listener in _eventListener) { | 1726 for (var listener in _eventListener) { |
| 1727 listener.allDone(); | 1727 listener.allDone(); |
| 1728 } | 1728 } |
| 1729 } | 1729 } |
| 1730 } | 1730 } |
| 1731 | 1731 |
| OLD | NEW |