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

Unified Diff: dart/pkg/unittest/lib/src/simple_configuration.dart

Issue 22849010: TestCase times out after 20 seconds. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add copyright and TODO. Created 7 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 | « dart/pkg/pkg.status ('k') | dart/pkg/unittest/lib/test_controller.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/pkg/unittest/lib/src/simple_configuration.dart
diff --git a/dart/pkg/unittest/lib/src/simple_configuration.dart b/dart/pkg/unittest/lib/src/simple_configuration.dart
index b9d3a02bf87ee8dd5e6fbac0c09963bc9239d59c..a7a997be8752537a0206bbd14fbea721d81afbc4 100644
--- a/dart/pkg/unittest/lib/src/simple_configuration.dart
+++ b/dart/pkg/unittest/lib/src/simple_configuration.dart
@@ -52,6 +52,9 @@ class SimpleConfiguration implements Configuration {
// we do with this List.
final _testLogBuffer = <Pair<String, Trace>>[];
+ /// How long a [TestCase] can run before it is considered an error.
+ Duration timeout = const Duration(seconds: 20);
+
/**
* The constructor sets up a failure handler for [expect] that redirects
* [expect] failures to [onExpectFailure].
« no previous file with comments | « dart/pkg/pkg.status ('k') | dart/pkg/unittest/lib/test_controller.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698