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