Chromium Code Reviews| Index: compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java |
| =================================================================== |
| --- compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java (revision 8465) |
| +++ compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java (working copy) |
| @@ -238,6 +238,16 @@ |
| assertEquals(1, nodes.size()); |
| } |
| + public void testMultipleLabels() { |
| + DartUnit unit = parseUnit ("multiple_labels.dart", |
| + Joiner.on("\n").join( |
| + "class A {", |
| + " void foo() {", |
| + " a: b: foo();", |
|
zundel
2012/06/08 21:29:05
In the Resolver, there is more handling for labels
|
| + " }", |
| + "}")); |
| + } |
| + |
| public void testAdjacentStrings1() { |
| DartUnit unit = parseUnit ("phony_adjacent_strings_1.dart", |
| Joiner.on("\n").join( |