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

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

Issue 10854156: Add a support for a slow marker in status files. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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_options.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/test_runner.dart
===================================================================
--- tools/testing/dart/test_runner.dart (revision 10699)
+++ tools/testing/dart/test_runner.dart (working copy)
@@ -18,6 +18,7 @@
#import("test_suite.dart");
final int NO_TIMEOUT = 0;
+final int SLOW_TIMEOUT_MULTIPLIER = 4;
/** A command executed as a step in a test case. */
class Command {
@@ -124,7 +125,13 @@
}
}
- int get timeout() => configuration['timeout'];
+ int get timeout() {
+ int timeout = configuration['timeout'];
+ if (expectedOutcomes.contains(SLOW)) {
+ timeout *= SLOW_TIMEOUT_MULTIPLIER;
+ }
+ return timeout;
+ }
Bill Hesse 2012/08/15 11:41:03 How about if (expectedOutcomes.contains(SLOW))
String get configurationString() {
final compiler = configuration['compiler'];
« no previous file with comments | « tools/testing/dart/test_options.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698