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

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

Issue 10809069: dart2dart compiler support. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Next iteration Created 8 years, 5 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/test_options.dart ('k') | tools/testing/dart/test_suite.dart » ('j') | 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 final mode = configuration['mode']; 132 final mode = configuration['mode'];
133 final arch = configuration['arch']; 133 final arch = configuration['arch'];
134 return "$compiler-$runtime ${mode}_$arch"; 134 return "$compiler-$runtime ${mode}_$arch";
135 } 135 }
136 136
137 List<String> get batchRunnerArguments() => ['-batch']; 137 List<String> get batchRunnerArguments() => ['-batch'];
138 List<String> get batchTestArguments() => commands.last().arguments; 138 List<String> get batchTestArguments() => commands.last().arguments;
139 139
140 void completed() { completedHandler(this); } 140 void completed() { completedHandler(this); }
141 141
142 bool get usesWebDriver() => (const ['chrome', 'dartium', 'ff', 'safari', 142 bool get usesWebDriver() => Contains(
143 'ie', 'opera']) 143 configuration['runtime'],
144 .indexOf(configuration['runtime']) >= 0; 144 const ['chrome', 'dartium', 'ff', 'safari', 'ie', 'opera']);
145 } 145 }
146 146
147 147
148 /** 148 /**
149 * BrowserTestCase has an extra compilation command that is run in a separate 149 * BrowserTestCase has an extra compilation command that is run in a separate
150 * process, before the regular test is run as in the base class [TestCase]. 150 * process, before the regular test is run as in the base class [TestCase].
151 * If the compilation command fails, then the rest of the test is not run. 151 * If the compilation command fails, then the rest of the test is not run.
152 */ 152 */
153 class BrowserTestCase extends TestCase { 153 class BrowserTestCase extends TestCase {
154 /** 154 /**
(...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 // the developer doesn't waste his or her time trying to fix a bunch of 1179 // the developer doesn't waste his or her time trying to fix a bunch of
1180 // tests that appear to be broken but were actually just flakes that 1180 // tests that appear to be broken but were actually just flakes that
1181 // didn't get retried because there had already been one failure. 1181 // didn't get retried because there had already been one failure.
1182 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests; 1182 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests;
1183 new RunningProcess(test, allowRetry, this).start(); 1183 new RunningProcess(test, allowRetry, this).start();
1184 } 1184 }
1185 _numProcesses++; 1185 _numProcesses++;
1186 } 1186 }
1187 } 1187 }
1188 } 1188 }
OLDNEW
« no previous file with comments | « tools/testing/dart/test_options.dart ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698