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

Unified Diff: tests/lib/async/catch_errors20_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/async/catch_errors20_test.dart
diff --git a/tests/lib/async/catch_errors20_test.dart b/tests/lib/async/catch_errors20_test.dart
index ee87c2ccf9a8bd9e6f0108c9f56b8a3e57ad137e..c3ca08e926e7ae29ed532060b94e3515a88558e6 100644
--- a/tests/lib/async/catch_errors20_test.dart
+++ b/tests/lib/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();
});
});

Powered by Google App Engine
This is Rietveld 408576698