Index: tests/compiler/dart2js_extra/switch_test.dart |
diff --git a/tests/compiler/dart2js_extra/switch_test.dart b/tests/compiler/dart2js_extra/switch_test.dart |
index 93bc2295c0df3b02754459bd6681e8e0d8b9eb26..7acade2f3fe8551c601dc191610cd3a9c108b811 100644 |
--- a/tests/compiler/dart2js_extra/switch_test.dart |
+++ b/tests/compiler/dart2js_extra/switch_test.dart |
@@ -7,23 +7,22 @@ import "package:expect/expect.dart"; |
switcher(val) { |
var x = 0; |
switch (val) { |
- case 1: |
- x = 100; |
- break; |
- case 2: |
- x = 200; |
- break; |
- case 3: |
- x = 300; |
- break; |
- default: |
- return 400; |
- break; // Intentional dead code (regression test for crash). |
+ case 1: |
+ x = 100; |
+ break; |
+ case 2: |
+ x = 200; |
+ break; |
+ case 3: |
+ x = 300; |
+ break; |
+ default: |
+ return 400; |
+ break; // Intentional dead code (regression test for crash). |
} |
return x; |
} |
- |
// Check unambiguated grammar allowing multiple lables per case/default. |
switcher2(val) { |
var x = 0; |
@@ -33,7 +32,8 @@ switcher2(val) { |
case 1: |
baz: |
case 2: |
- fez: { |
+ fez: |
+ { |
x = 100; |
break fez; |
} |
@@ -44,7 +44,8 @@ switcher2(val) { |
case 4: |
svin: |
default: |
- barber: { |
+ barber: |
+ { |
if (val > 2) { |
x = 200; |
break; |
@@ -57,7 +58,6 @@ switcher2(val) { |
return x; |
} |
- |
badswitches(val) { |
// Test some badly formed switch bodies. |
// 01 - a label/statement without a following case/default. |