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

Unified Diff: tests/language_strong/switch_try_catch_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/language_strong/switch_try_catch_test.dart
diff --git a/tests/language_strong/switch_try_catch_test.dart b/tests/language_strong/switch_try_catch_test.dart
index d362a145d71da493eff7d9583b42a471251bef02..beee717cafee0e1ad3c849d9cd5ec39a0ce02472 100644
--- a/tests/language_strong/switch_try_catch_test.dart
+++ b/tests/language_strong/switch_try_catch_test.dart
@@ -5,26 +5,29 @@
// Regression test for issue 18869: Check that try-catch is working correctly
// inside switch-case clauses.
-
import "package:expect/expect.dart";
test_switch() {
- switch(0) {
- _0: case 0:
+ switch (0) {
+ _0:
+ case 0:
print("_0");
continue _5;
- _1: case 1:
+ _1:
+ case 1:
try {
print("bunny");
continue _6;
- } catch(e) { }
+ } catch (e) {}
break;
- _5: case 5:
+ _5:
+ case 5:
print("_5");
continue _6;
- _6: case 6:
+ _6:
+ case 6:
print("_6");
- throw 555;
+ throw 555;
}
}

Powered by Google App Engine
This is Rietveld 408576698