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

Unified Diff: tests/language_strong/async_continue_label_test.dart

Issue 2768073002: Format all multitests (Closed)
Patch Set: Created 3 years, 9 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_strong/async_continue_label_test.dart
diff --git a/tests/language_strong/async_continue_label_test.dart b/tests/language_strong/async_continue_label_test.dart
index 3ace73af4da1a1d7132c849c7beeff4e6467361a..c33fa532eb8d6580ad017d9f04ce14b321f36c62 100644
--- a/tests/language_strong/async_continue_label_test.dart
+++ b/tests/language_strong/async_continue_label_test.dart
@@ -9,16 +9,22 @@ import "package:async_helper/async_helper.dart";
test1() async {
var r = 0;
label:
- for(var i = 1, j =
+ for (var i = 1,
+ j =
await //# await_in_init: ok
- 10; i < 10 && j >
+ 10;
+ i < 10 &&
+ j >
await //# await_in_condition: ok
- -5; j--, i +=
+ -5;
+ j--,
+ i +=
await //# await_in_update: ok
- 1) {
- if (i <
+ 1) {
+ if (i <
await //# await_in_body: ok
- 5 || j < -5) {
+ 5 ||
+ j < -5) {
continue label;
}
r++;
@@ -30,16 +36,18 @@ test1() async {
test2() async {
var r = 0;
label:
- for(var i =
+ for (var i =
await //# await_in_init: ok
- 0; i <
+ 0;
+ i <
await //# await_in_condition: ok
- 10; i +=
+ 10;
+ i +=
await //# await_in_update: ok
- 1) {
+ 1) {
if (i <
await //# await_in_body: ok
- 5) {
+ 5) {
continue label;
}
r++;
@@ -51,16 +59,18 @@ test2() async {
test3() async {
var r = 0, i, j;
label:
- for(i =
+ for (i =
await //# await_in_init: ok
- 0; i <
+ 0;
+ i <
await //# await_in_condition: ok
- 10; i +=
+ 10;
+ i +=
await //# await_in_update: ok
- 1) {
- if (i <
+ 1) {
+ if (i <
await //# await_in_body: ok
- 5) {
+ 5) {
continue label;
}
r++;
@@ -72,19 +82,21 @@ test3() async {
test4() async {
var r = 0;
label:
- for(var i =
+ for (var i =
await //# await_in_init: ok
- 0; i <
+ 0;
+ i <
await //# await_in_condition: ok
- 10; i+=
+ 10;
+ i +=
await //# await_in_update: ok
- 1) {
+ 1) {
if (i <
await //# await_in_body: ok
- 5) {
+ 5) {
for (int i = 0; i < 10; i++) {
continue label;
- }
+ }
}
r++;
}

Powered by Google App Engine
This is Rietveld 408576698