Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1019)

Unified Diff: tests/lib_strong/async/catch_errors21_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/lib_strong/async/catch_errors21_test.dart
diff --git a/tests/lib_strong/async/catch_errors21_test.dart b/tests/lib_strong/async/catch_errors21_test.dart
index 8b220f5957d0477e41822b7e0bf932df96104d44..11db23b6001fd06523caad732e0174d2ca9aeabc 100644
--- a/tests/lib_strong/async/catch_errors21_test.dart
+++ b/tests/lib_strong/async/catch_errors21_test.dart
@@ -19,27 +19,33 @@ main() {
// `catchErrors` it is caught there.
catchErrors(() {
catchErrors(() {
- controller.stream.map((x) { throw x; }).listen((x) {
+ controller.stream.map((x) {
+ throw x;
+ }).listen((x) {
// Should not happen.
events.add("bad: $x");
});
}).listen((x) {
- events.add("caught: $x");
- if (x == 4) done.complete(true);
- },
- onDone: () { Expect.fail("Unexpected callback"); });
- }).listen((x) { events.add("outer: $x"); },
- onDone: () { Expect.fail("Unexpected callback"); });
+ events.add("caught: $x");
+ if (x == 4) done.complete(true);
+ }, 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(["caught: 1",
- "caught: 2",
- "caught: 3",
- "caught: 4",
- ],
- events);
+ Expect.listEquals([
+ "caught: 1",
+ "caught: 2",
+ "caught: 3",
+ "caught: 4",
+ ], events);
asyncEnd();
});
});

Powered by Google App Engine
This is Rietveld 408576698