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

Unified Diff: lib/src/test_case.dart

Issue 846143003: Reformatted code (Closed) Base URL: https://github.com/dart-lang/unittest.git@master
Patch Set: Created 5 years, 11 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 | « lib/src/spread_args_helper.dart ('k') | lib/src/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/test_case.dart
diff --git a/lib/src/test_case.dart b/lib/src/test_case.dart
index fc84ed7e7d03326f40604371ea788b3abc569808..a365cc662b42eea3c73c05b8c988d200c2514f42 100644
--- a/lib/src/test_case.dart
+++ b/lib/src/test_case.dart
@@ -104,7 +104,8 @@ class TestCase {
// would a callback, so if a failure occurs while waiting, we can abort.
if (testReturn is Future) {
++_callbackFunctionsOutstanding;
- testReturn.catchError(_errorHandler('Test'))
+ testReturn
+ .catchError(_errorHandler('Test'))
.whenComplete(_markCallbackComplete);
}
}).catchError(_errorHandler('Test')).then((_) {
@@ -142,8 +143,8 @@ class TestCase {
}
}
- void _complete(String testResult, [String messageText = '',
- StackTrace stack]) {
+ void _complete(String testResult,
+ [String messageText = '', StackTrace stack]) {
if (runningTime == null) {
// The startTime can be `null` if an error happened during setup. In this
// case we simply report a running time of 0.
« no previous file with comments | « lib/src/spread_args_helper.dart ('k') | lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698