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

Unified Diff: tests/language/async_switch_test.dart

Issue 2770063002: Revert "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
« no previous file with comments | « tests/language/async_return_types_test.dart ('k') | tests/language/async_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/async_switch_test.dart
diff --git a/tests/language/async_switch_test.dart b/tests/language/async_switch_test.dart
index dc9bf7552377dec9de78635f2bf00b653a032419..8fabeb68aeaf8b0fa69998683a6bde8979e9f848 100644
--- a/tests/language/async_switch_test.dart
+++ b/tests/language/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());
-}
+}
« no previous file with comments | « tests/language/async_return_types_test.dart ('k') | tests/language/async_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698