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

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

Issue 23702020: Add timeout getter to Configuration. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/pkg/unittest/lib/src/configuration.dart
diff --git a/dart/pkg/unittest/lib/src/configuration.dart b/dart/pkg/unittest/lib/src/configuration.dart
index c9ec1c0718d7f5f26ee39e2f5e3abba8de8d6dd1..1862bf5464ca2a210502cf354acbe411984e26c7 100644
--- a/dart/pkg/unittest/lib/src/configuration.dart
+++ b/dart/pkg/unittest/lib/src/configuration.dart
@@ -28,6 +28,9 @@ abstract class Configuration {
*/
bool get autoStart => true;
+ /// How long a [TestCase] can run before it is considered an error.
+ Duration get timeout => const Duration(seconds: 20);
+
/**
* Called as soon as the unittest framework becomes initialized. This is done
* even before tests are added to the test framework. It might be used to
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698