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

Unified Diff: tests/language/switch_case_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/super_operator_index_test.dart ('k') | tests/language/switch_case_warn_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/switch_case_test.dart
diff --git a/tests/language/switch_case_test.dart b/tests/language/switch_case_test.dart
index 64362fec7c08b19331e65f369dd9fa0125dd9ed2..2ed1df5b28450c1bd6494e846fc9147307ebf281 100644
--- a/tests/language/switch_case_test.dart
+++ b/tests/language/switch_case_test.dart
@@ -34,22 +34,14 @@ main() {
}
switch (new C()) {
- case const C():
- Expect.fail("bad switch");
- break;
- case const A.C():
- Expect.fail("bad switch");
- break;
- case const A.C2():
- Expect.fail("bad switch");
- break;
+ case const C(): Expect.fail("bad switch"); break;
+ case const A.C(): Expect.fail("bad switch"); break;
+ case const A.C2(): Expect.fail("bad switch"); break;
case const A(): Expect.fail("bad switch"); break; // //# 01: compile-time error
}
switch (new A()) {
- case const A():
- Expect.fail("bad switch");
- break;
+ case const A(): Expect.fail("bad switch"); break;
case const A.B(): Expect.fail("bad switch"); break; // //# 02: compile-time error
}
}
« no previous file with comments | « tests/language/super_operator_index_test.dart ('k') | tests/language/switch_case_warn_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698