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

Unified Diff: tools/testing/dart/test_runner.dart

Issue 11267008: Fix issue that cases the usesWebDriver getter in TestCase to always return false. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/testing/dart/test_progress.dart ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/test_runner.dart
diff --git a/tools/testing/dart/test_runner.dart b/tools/testing/dart/test_runner.dart
index 6376dd88359dd5a3d82c9f0e16b18b1377dd6a98..930a561c9374175571a75b1aadcf28c40a805290 100644
--- a/tools/testing/dart/test_runner.dart
+++ b/tools/testing/dart/test_runner.dart
@@ -77,7 +77,6 @@ class TestCase {
String displayName;
TestOutput output;
bool isNegative;
- bool usesWebDriver;
Set<String> expectedOutcomes;
TestCaseEvent completedHandler;
TestInformation info;
@@ -88,8 +87,7 @@ class TestCase {
this.completedHandler,
this.expectedOutcomes,
{this.isNegative: false,
- this.info: null,
- this.usesWebDriver: false}) {
+ this.info: null}) {
if (!isNegative) {
this.isNegative = displayName.contains("negative_test");
}
@@ -166,6 +164,8 @@ class TestCase {
List<String> get batchRunnerArguments => ['-batch'];
List<String> get batchTestArguments => commands.last().arguments;
+ bool get usesWebDriver => TestUtils.usesWebDriver(configuration['runtime']);
+
void completed() { completedHandler(this); }
}
@@ -594,6 +594,9 @@ class RunningProcess {
(testCase as BrowserTestCase).numRetries--;
print("Potential flake. Re-running ${testCase.displayName} "
"(${(testCase as BrowserTestCase).numRetries} attempt(s) remains)");
+ // When retrying we need to reset the timeout as well.
+ // Otherwise there will be no timeout handling for the retry.
+ timeoutTimer = null;
Emily Fortuna 2012/10/24 17:14:48 This shouldn't be reached on the bots because the
Mads Ager (google) 2012/10/24 17:56:03 This is needed if step1 fails. I believe that only
this.start();
} else {
testCase.completed();
@@ -610,8 +613,7 @@ class RunningProcess {
process = null;
int totalSteps = testCase.commands.length;
String suffix =' (step $currentStep of $totalSteps)';
- if (timedOut &&
- !(testCase.usesWebDriver && !testCase.configuration['noBatch'])) {
+ if (timedOut) {
// Non-webdriver test timed out before it could complete. Webdriver tests
// run their own timeouts by timing from the launch of the browser (which
// could be delayed).
« no previous file with comments | « tools/testing/dart/test_progress.dart ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698