Chromium Code Reviews| 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']; |