| Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
|
| diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
|
| index b901da3152211f48553ef7ca55f558432b18f96b..cf63ed6317fbf43443f1f2571d0e80ed50d6fc85 100644
|
| --- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
|
| +++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
|
| @@ -1858,6 +1858,34 @@ public class CompileTimeErrorCodeTest extends ResolverTestCase {
|
| verify(source);
|
| }
|
|
|
| + public void test_invalidAnnotation_unresolved_identifier() throws Exception {
|
| + Source source = addSource(createSource(//
|
| + "@unresolved",
|
| + "main() {",
|
| + "}"));
|
| + resolve(source);
|
| + assertErrors(source, CompileTimeErrorCode.INVALID_ANNOTATION);
|
| + }
|
| +
|
| + public void test_invalidAnnotation_unresolved_invocation() throws Exception {
|
| + Source source = addSource(createSource(//
|
| + "@Unresolved()",
|
| + "main() {",
|
| + "}"));
|
| + resolve(source);
|
| + assertErrors(source, CompileTimeErrorCode.INVALID_ANNOTATION);
|
| + }
|
| +
|
| + public void test_invalidAnnotation_unresolved_prefixedIdentifier() throws Exception {
|
| + Source source = addSource(createSource(//
|
| + "import 'dart:math' as p;",
|
| + "@p.unresolved",
|
| + "main() {",
|
| + "}"));
|
| + resolve(source);
|
| + assertErrors(source, CompileTimeErrorCode.INVALID_ANNOTATION);
|
| + }
|
| +
|
| public void test_invalidConstructorName_notEnclosingClassName_defined() throws Exception {
|
| Source source = addSource(createSource(//
|
| "class A {",
|
|
|