Index: tests/lib_strong/async/stack_trace08_test.dart |
diff --git a/tests/lib_strong/async/stack_trace08_test.dart b/tests/lib_strong/async/stack_trace08_test.dart |
index 966728c5b9a56df2bd2e896746c96836f4b4c653..e9d5b94e6c22baae5c4c499d4186a16d7261631c 100644 |
--- a/tests/lib_strong/async/stack_trace08_test.dart |
+++ b/tests/lib_strong/async/stack_trace08_test.dart |
@@ -18,19 +18,17 @@ main() { |
Completer completer = new Completer(); |
StackTrace trace = captureStackTrace(); |
asyncStart(); |
- completer.future |
- .whenComplete(() => 499) |
- .then((_) { throw "should never be reached"; }) |
- .catchError((e, st) { |
- Expect.equals("c-error", e); |
- Expect.identical(trace, st); |
- // Test the rethrowing the same error keeps the stack trace. |
- throw e; |
- }) |
- .catchError((e, st) { |
- Expect.equals("c-error", e); |
- Expect.identical(trace, st); |
- asyncEnd(); |
- }); |
+ completer.future.whenComplete(() => 499).then((_) { |
+ throw "should never be reached"; |
+ }).catchError((e, st) { |
+ Expect.equals("c-error", e); |
+ Expect.identical(trace, st); |
+ // Test the rethrowing the same error keeps the stack trace. |
+ throw e; |
+ }).catchError((e, st) { |
+ Expect.equals("c-error", e); |
+ Expect.identical(trace, st); |
+ asyncEnd(); |
+ }); |
completer.completeError("c-error", trace); |
} |