| Index: compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
|
| diff --git a/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java b/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
|
| index f24dc9cf407c961ab807372d83e3d6ebe03173b3..8f35627a7ac4b1194966f8e91e43559a98662d86 100644
|
| --- a/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
|
| +++ b/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
|
| @@ -55,7 +55,7 @@ public class SyntaxTest extends AbstractParserTest {
|
| DartTypeNode fooReturnType = fooMethod.getFunction().getReturnTypeNode();
|
| assertEquals(true, fooReturnType.getIdentifier() instanceof DartPropertyAccess);
|
| }
|
| -
|
| +
|
| @Override
|
| public void testStrings() {
|
| DartUnit unit = parseUnit("Strings.dart");
|
| @@ -195,4 +195,37 @@ public class SyntaxTest extends AbstractParserTest {
|
| assertEquals(1, ((DartIntegerLiteral) (map.getEntries().get(0)).getValue()).getValue()
|
| .intValue());
|
| }
|
| + public void testNestedParameterizedTypes1() {
|
| + // token >>> is handled specially
|
| + DartUnit unit = parseUnit ("phony_param_type1.dart",
|
| + Joiner.on("\n").join(
|
| + "class A<K> {",
|
| + " A<A<A<K>>> member;",
|
| + "}"));
|
| + List<DartNode> nodes = unit.getTopLevelNodes();
|
| + assertEquals(1, nodes.size());
|
| + }
|
| +
|
| + public void testNestedParameterizedTypes2() {
|
| + // token >> is handled specially
|
| + DartUnit unit = parseUnit ("phony_param_type1.dart",
|
| + Joiner.on("\n").join(
|
| + "class A<K> {",
|
| + " A<A<K>> member;",
|
| + "}"));
|
| + List<DartNode> nodes = unit.getTopLevelNodes();
|
| + assertEquals(1, nodes.size());
|
| + }
|
| +
|
| + public void testMethodDefinition1() {
|
| + DartUnit unit = parseUnit ("phony_method_definition1.dart",
|
| + Joiner.on("\n").join(
|
| + "class A {",
|
| + " pref.A foo() {",
|
| + " return new pref.A();",
|
| + " }",
|
| + "}"));
|
| + List<DartNode> nodes = unit.getTopLevelNodes();
|
| + assertEquals(1, nodes.size());
|
| + }
|
| }
|
|
|