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

Unified Diff: tests/language/async_star_regression_fisk_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/language/async_star_regression_fisk_test.dart
diff --git a/tests/language/async_star_regression_fisk_test.dart b/tests/language/async_star_regression_fisk_test.dart
index b46d90faa1fe5d37d899d95b293caf7671e32805..6651c926480f342798d3ae367f5128056b261508 100644
--- a/tests/language/async_star_regression_fisk_test.dart
+++ b/tests/language/async_star_regression_fisk_test.dart
@@ -24,21 +24,36 @@ main() {
fugl(int count) async {
res.add("fisk $count");
try {
- await for(int i in fisk().take(count)) res.add(i);
+ await for (int i in fisk().take(count)) res.add(i);
} finally {
res.add("done");
}
}
asyncStart();
- fugl(3).whenComplete(() => fugl(2))
+ fugl(3)
+ .whenComplete(() => fugl(2))
.whenComplete(() => fugl(1))
.whenComplete(() {
- Expect.listEquals(
- ["fisk 3", "+fisk", 0, 1, "-fisk", "done",
- "fisk 2", "+fisk", 0, 1, "-fisk", "done",
- "fisk 1", "+fisk", 0, "-fisk", "done"],
- res);
+ Expect.listEquals([
+ "fisk 3",
+ "+fisk",
+ 0,
+ 1,
+ "-fisk",
+ "done",
+ "fisk 2",
+ "+fisk",
+ 0,
+ 1,
+ "-fisk",
+ "done",
+ "fisk 1",
+ "+fisk",
+ 0,
+ "-fisk",
+ "done"
+ ], res);
asyncEnd();
});
}

Powered by Google App Engine
This is Rietveld 408576698