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

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

Issue 12817003: Change getRange to sublist. Make getRange deprecated. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 : super(displayName, commands, configuration, completedHandler, 386 : super(displayName, commands, configuration, completedHandler,
387 expectedOutcomes, isNegative: isNegative, info: info) { 387 expectedOutcomes, isNegative: isNegative, info: info) {
388 numRetries = 2; // Allow two retries to compensate for flaky browser tests. 388 numRetries = 2; // Allow two retries to compensate for flaky browser tests.
389 observers = []; 389 observers = [];
390 } 390 }
391 391
392 List<String> get _lastArguments => commands.last.arguments; 392 List<String> get _lastArguments => commands.last.arguments;
393 393
394 List<String> get batchRunnerArguments => [_lastArguments[0], '--batch']; 394 List<String> get batchRunnerArguments => [_lastArguments[0], '--batch'];
395 395
396 List<String> get batchTestArguments => 396 List<String> get batchTestArguments => _lastArguments.sublist(1);
397 _lastArguments.getRange(1, _lastArguments.length - 1);
398 397
399 /** Add a test case to listen for when this current test has completed. */ 398 /** Add a test case to listen for when this current test has completed. */
400 void addObserver(BrowserTestCase testCase) { 399 void addObserver(BrowserTestCase testCase) {
401 observers.add(testCase); 400 observers.add(testCase);
402 } 401 }
403 402
404 /** 403 /**
405 * Notify all of the test cases that are dependent on this one that they can 404 * Notify all of the test cases that are dependent on this one that they can
406 * proceed. 405 * proceed.
407 */ 406 */
(...skipping 1308 matching lines...) Expand 10 before | Expand all | Expand 10 after
1716 } 1715 }
1717 } 1716 }
1718 1717
1719 void eventAllTestsDone() { 1718 void eventAllTestsDone() {
1720 for (var listener in _eventListener) { 1719 for (var listener in _eventListener) {
1721 listener.allDone(); 1720 listener.allDone();
1722 } 1721 }
1723 } 1722 }
1724 } 1723 }
1725 1724
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698