Index: tests/lib_strong/async/stack_trace19_test.dart |
diff --git a/tests/lib_strong/async/stack_trace19_test.dart b/tests/lib_strong/async/stack_trace19_test.dart |
index 0e805ada7dd0d422787f86eba53cc4bbea417a82..74a6180890f9e7ca08a2306a0f2b55a8e915dd8a 100644 |
--- a/tests/lib_strong/async/stack_trace19_test.dart |
+++ b/tests/lib_strong/async/stack_trace19_test.dart |
@@ -19,21 +19,21 @@ main() { |
StackTrace trace = captureStackTrace(); |
StackTrace whenCompleteStackTrace; |
asyncStart(); |
- completer.future |
- .whenComplete(() { throw "other_error"; }) |
- .then((_) { throw "should never be reached"; }) |
- .catchError((e, st) { |
- Expect.equals("other_error", e); |
- Expect.isNotNull(st); |
- Expect.isFalse(identical(trace, st)); |
- whenCompleteStackTrace = st; |
- // Test the rethrowing the same error keeps the stack trace. |
- throw e; |
- }) |
- .catchError((e, st) { |
- Expect.equals("other_error", e); |
- Expect.identical(whenCompleteStackTrace, st); |
- asyncEnd(); |
- }); |
+ completer.future.whenComplete(() { |
+ throw "other_error"; |
+ }).then((_) { |
+ throw "should never be reached"; |
+ }).catchError((e, st) { |
+ Expect.equals("other_error", e); |
+ Expect.isNotNull(st); |
+ Expect.isFalse(identical(trace, st)); |
+ whenCompleteStackTrace = st; |
+ // Test the rethrowing the same error keeps the stack trace. |
+ throw e; |
+ }).catchError((e, st) { |
+ Expect.equals("other_error", e); |
+ Expect.identical(whenCompleteStackTrace, st); |
+ asyncEnd(); |
+ }); |
completer.completeError("c-error", trace); |
} |