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

Unified Diff: tests/kernel/unsorted/switch_case_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/kernel/unsorted/switch_case_test.dart
diff --git a/tests/kernel/unsorted/switch_case_test.dart b/tests/kernel/unsorted/switch_case_test.dart
index 333310f4c6fb311d51900ff710394bdab2d68716..509a3738c06249a8a587a1be87111d2e15833d50 100644
--- a/tests/kernel/unsorted/switch_case_test.dart
+++ b/tests/kernel/unsorted/switch_case_test.dart
@@ -9,7 +9,7 @@ mkTwo() => 2;
testNormal() {
int result;
- switch(mkOne()) {
+ switch (mkOne()) {
case 0:
result = 0;
break;
@@ -28,7 +28,7 @@ testNormal() {
testDefault() {
int result;
- switch(null) {
+ switch (null) {
case 0:
result = 0;
break;
@@ -47,7 +47,7 @@ testDefault() {
testFallThrough() {
int result;
- switch(mkOne()) {
+ switch (mkOne()) {
case 0:
result = 0;
break;
@@ -64,7 +64,7 @@ testFallThrough() {
testContinue() {
int result;
- switch(mkTwo()) {
+ switch (mkTwo()) {
case 0:
result = 0;
break;
@@ -88,7 +88,7 @@ testContinue() {
testOnlyDefault() {
int result;
- switch(mkTwo()) {
+ switch (mkTwo()) {
default:
result = 42;
}
@@ -97,7 +97,7 @@ testOnlyDefault() {
testOnlyDefaultWithBreak() {
int result;
- switch(mkTwo()) {
+ switch (mkTwo()) {
default:
result = 42;
}
@@ -105,10 +105,13 @@ testOnlyDefaultWithBreak() {
}
String testReturn() {
- switch(mkOne()) {
- case 0: return "bad";
- case 1: return "good";
- default: return "bad";
+ switch (mkOne()) {
+ case 0:
+ return "bad";
+ case 1:
+ return "good";
+ default:
+ return "bad";
}
}
@@ -155,6 +158,7 @@ regressionTest3() {
}
throw new UnsupportedError("Unexpected constant kind.");
}
+
Expect.isTrue(f(1) == 2);
}

Powered by Google App Engine
This is Rietveld 408576698