| Index: tests/lib_strong/async/catch_errors12_test.dart
|
| diff --git a/tests/lib_strong/async/catch_errors12_test.dart b/tests/lib_strong/async/catch_errors12_test.dart
|
| index 89528600a8addd2c95a24b7f8ae51a693e0fec15..fc42696db780e299deeb8275f4d3e1a297aab108 100644
|
| --- a/tests/lib_strong/async/catch_errors12_test.dart
|
| +++ b/tests/lib_strong/async/catch_errors12_test.dart
|
| @@ -16,8 +16,12 @@ main() {
|
| // Timers are still caught by `catchErrors`.
|
| catchErrors(() {
|
| events.add("catch error entry");
|
| - Timer.run(() { throw "timer error"; });
|
| - new Timer(const Duration(milliseconds: 100), () { throw "timer2 error"; });
|
| + Timer.run(() {
|
| + throw "timer error";
|
| + });
|
| + new Timer(const Duration(milliseconds: 100), () {
|
| + throw "timer2 error";
|
| + });
|
| new Future.value(499).then((x) {
|
| new Timer(const Duration(milliseconds: 200), () {
|
| done.complete(499);
|
| @@ -26,21 +30,21 @@ main() {
|
| });
|
| throw "catch error";
|
| }).listen((x) {
|
| - events.add(x);
|
| - },
|
| - onDone: () { Expect.fail("Unexpected callback"); });
|
| + events.add(x);
|
| + }, onDone: () {
|
| + Expect.fail("Unexpected callback");
|
| + });
|
| done.future.whenComplete(() {
|
| // Give time to execute the callbacks.
|
| Timer.run(() {
|
| Expect.listEquals([
|
| - "catch error entry",
|
| - "main exit",
|
| - "catch error",
|
| - "timer error",
|
| - "timer2 error",
|
| - 499,
|
| - ],
|
| - events);
|
| + "catch error entry",
|
| + "main exit",
|
| + "catch error",
|
| + "timer error",
|
| + "timer2 error",
|
| + 499,
|
| + ], events);
|
| asyncEnd();
|
| });
|
| });
|
|
|