Index: tests/lib_strong/async/catch_errors20_test.dart |
diff --git a/tests/lib_strong/async/catch_errors20_test.dart b/tests/lib_strong/async/catch_errors20_test.dart |
index ee87c2ccf9a8bd9e6f0108c9f56b8a3e57ad137e..c3ca08e926e7ae29ed532060b94e3515a88558e6 100644 |
--- a/tests/lib_strong/async/catch_errors20_test.dart |
+++ b/tests/lib_strong/async/catch_errors20_test.dart |
@@ -21,20 +21,24 @@ main() { |
events.add(42); |
done.complete(true); |
}); |
- }).listen(events.add, |
- onDone: () { events.add("done"); }); |
+ }).listen(events.add, onDone: () { |
+ events.add("done"); |
+ }); |
throw "foo"; |
- }).listen((x) { events.add("outer: $x"); }, |
- onDone: () { Expect.fail("Unexpected callback"); }); |
+ }).listen((x) { |
+ events.add("outer: $x"); |
+ }, onDone: () { |
+ Expect.fail("Unexpected callback"); |
+ }); |
done.future.whenComplete(() { |
// Give handlers time to run. |
Timer.run(() { |
- Expect.listEquals(["outer: foo", |
- 499, |
- 42, |
- ], |
- events); |
+ Expect.listEquals([ |
+ "outer: foo", |
+ 499, |
+ 42, |
+ ], events); |
asyncEnd(); |
}); |
}); |