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

Unified Diff: tests/language/asyncstar_yield_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/asyncstar_yield_test.dart
diff --git a/tests/language/asyncstar_yield_test.dart b/tests/language/asyncstar_yield_test.dart
index 3b64900b3999be2d4cd24df2dfc9a104f45aafa9..1ead7152b31bf8e107c21042846ffea9083df257 100644
--- a/tests/language/asyncstar_yield_test.dart
+++ b/tests/language/asyncstar_yield_test.dart
@@ -28,7 +28,8 @@ Stream<int> foo3(p) async* {
yield null;
while (true) {
i++;
- a: for (int i = 0; i < p; i++) {
+ a:
+ for (int i = 0; i < p; i++) {
if (!t) {
for (int j = 0; j < 3; j++) {
yield -1;
@@ -60,16 +61,16 @@ Stream<int> foo4() async* {
test() async {
Expect.listEquals([1, 20], await (foo1().toList()));
Expect.listEquals([0, 1, 2, 3], await (foo2().take(4).toList()));
- Expect.listEquals([null, -1, 0, 1, 2, 3, 0, 1, 2, 3],
- await (foo3(4).take(10).toList()));
- Expect.listEquals([0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
- await (foo4().take(10).toList()));
+ Expect.listEquals(
+ [null, -1, 0, 1, 2, 3, 0, 1, 2, 3], await (foo3(4).take(10).toList()));
+ Expect.listEquals(
+ [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], await (foo4().take(10).toList()));
Expect.isTrue(await (finalized.future));
}
-main () {
+main() {
asyncStart();
test().then((_) {
asyncEnd();
});
-}
+}

Powered by Google App Engine
This is Rietveld 408576698