Chromium Code Reviews| Index: pkg/unittest/lib/src/spread_args_helper.dart |
| diff --git a/pkg/unittest/lib/src/spread_args_helper.dart b/pkg/unittest/lib/src/spread_args_helper.dart |
| index 08dd45868ee6b3a1da9fbabcaa76c83378ead782..16b5cadadd79e13ed20b4a9a3677aadd92f8baa4 100644 |
| --- a/pkg/unittest/lib/src/spread_args_helper.dart |
| +++ b/pkg/unittest/lib/src/spread_args_helper.dart |
| @@ -120,4 +120,15 @@ class _SpreadArgsHelper { |
| }, |
| after, testCase); |
| } |
| + |
| + _guardAsync(Function tryBody, Function finallyBody, TestCase testCase) { |
|
Siggi Cherem (dart-lang)
2014/02/04 02:20:05
I thought we were going to get rid of this too (si
kevmoo
2014/02/04 02:26:18
This is still used by the expectAsync logic. I'm l
Siggi Cherem (dart-lang)
2014/02/04 02:42:01
I meant, I thought you were going to get rid of it
|
| + assert(testCase != null); |
| + try { |
| + return tryBody(); |
| + } catch (e, trace) { |
| + _registerException(testCase, e, trace); |
| + } finally { |
| + if (finallyBody != null) finallyBody(); |
| + } |
| + } |
| } |