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

Side by Side Diff: pkg/unittest/lib/src/simple_configuration.dart

Issue 48493002: Increase the 20 second timeout value of the unittest framework higher (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/unittest/lib/src/configuration.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of unittest; 5 part of unittest;
6 6
7 // A custom failure handler for [expect] that routes expect failures 7 // A custom failure handler for [expect] that routes expect failures
8 // to the config. 8 // to the config.
9 class _ExpectFailureHandler extends DefaultFailureHandler { 9 class _ExpectFailureHandler extends DefaultFailureHandler {
10 final SimpleConfiguration _config; 10 final SimpleConfiguration _config;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 * to stop (other exceptions will still terminate the test). 47 * to stop (other exceptions will still terminate the test).
48 */ 48 */
49 bool stopTestOnExpectFailure = true; 49 bool stopTestOnExpectFailure = true;
50 50
51 // If stopTestOnExpectFailure is false, we need to capture failures, which 51 // If stopTestOnExpectFailure is false, we need to capture failures, which
52 // we do with this List. 52 // we do with this List.
53 final _testLogBuffer = <Pair<String, StackTrace>>[]; 53 final _testLogBuffer = <Pair<String, StackTrace>>[];
54 54
55 /// How long a [TestCase] can run before it is considered an error. 55 /// How long a [TestCase] can run before it is considered an error.
56 /// A [timeout] value of [:null:] means that the limit is infinite. 56 /// A [timeout] value of [:null:] means that the limit is infinite.
57 Duration timeout = const Duration(seconds: 20); 57 Duration timeout = const Duration(minutes: 2);
58 58
59 /** 59 /**
60 * The constructor sets up a failure handler for [expect] that redirects 60 * The constructor sets up a failure handler for [expect] that redirects
61 * [expect] failures to [onExpectFailure]. 61 * [expect] failures to [onExpectFailure].
62 */ 62 */
63 SimpleConfiguration() : super.blank() { 63 SimpleConfiguration() : super.blank() {
64 configureExpectFailureHandler(new _ExpectFailureHandler(this)); 64 configureExpectFailureHandler(new _ExpectFailureHandler(this));
65 } 65 }
66 66
67 void onInit() { 67 void onInit() {
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 } 214 }
215 } 215 }
216 } 216 }
217 217
218 void _postMessage(String message) { 218 void _postMessage(String message) {
219 // In dart2js browser tests, the JavaScript-based test controller 219 // In dart2js browser tests, the JavaScript-based test controller
220 // intercepts calls to print and listens for "secret" messages. 220 // intercepts calls to print and listens for "secret" messages.
221 print(message); 221 print(message);
222 } 222 }
223 } 223 }
OLDNEW
« no previous file with comments | « pkg/unittest/lib/src/configuration.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698