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

Unified Diff: tests/language_strong/async_switch_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_switch_test.dart
diff --git a/tests/language_strong/async_switch_test.dart b/tests/language_strong/async_switch_test.dart
index 8fabeb68aeaf8b0fa69998683a6bde8979e9f848..dc9bf7552377dec9de78635f2bf00b653a032419 100644
--- a/tests/language_strong/async_switch_test.dart
+++ b/tests/language_strong/async_switch_test.dart
@@ -8,14 +8,14 @@ import "package:async_helper/async_helper.dart";
foo1(a) async {
int k = 0;
- switch(a) {
+ switch (a) {
case 1:
await 3;
k += 1;
break;
case 2:
k += a;
- return k+2;
+ return k + 2;
default: k = 2; //# withDefault: ok
}
return k;
@@ -23,14 +23,14 @@ foo1(a) async {
foo2(a) async {
int k = 0;
- switch(await a) {
+ switch (await a) {
case 1:
await 3;
k += 1;
break;
case 2:
k += await a;
- return k+2;
+ return k + 2;
default: k = 2; //# withDefault: ok
}
return k;
@@ -38,13 +38,13 @@ foo2(a) async {
foo3(a) async {
int k = 0;
- switch(a) {
+ switch (a) {
case 1:
k += 1;
break;
case 2:
k += a;
- return k+2;
+ return k + 2;
default: k = 2; //# withDefault: ok
}
return k;
@@ -52,7 +52,7 @@ foo3(a) async {
foo4(value) async {
int k = 0;
- switch(await value) {
+ switch (await value) {
case 1:
k += 1;
break;
@@ -88,4 +88,4 @@ test() async {
void main() {
asyncStart();
test().then((_) => asyncEnd());
-}
+}

Powered by Google App Engine
This is Rietveld 408576698