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

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

Issue 14172011: Fix more type errors in test scripts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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_test.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 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « tools/testing/dart/browser_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698