| Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/visitor/ElementLocatorTest.java
|
| diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/visitor/ElementLocatorTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/visitor/ElementLocatorTest.java
|
| index f7336c9461a2d21bb52b434d4cfc95d884020031..d6d6d1351847df5120e49b63811602cdf6d19fd2 100644
|
| --- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/visitor/ElementLocatorTest.java
|
| +++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/visitor/ElementLocatorTest.java
|
| @@ -212,13 +212,15 @@ public class ElementLocatorTest extends ResolverTestCase {
|
| InstanceCreationExpression creation = instanceCreationExpression(
|
| Keyword.NEW,
|
| typeName(prefixedIdentifier));
|
| - // set ConstructorElement
|
| + // set ClassElement
|
| ClassElement classElement = classElement("A");
|
| + identifier.setStaticElement(classElement);
|
| + // set ConstructorElement
|
| ConstructorElement constructorElement = constructorElement(classElement, null);
|
| creation.getConstructorName().setStaticElement(constructorElement);
|
| // verify that "A" is resolved to ConstructorElement
|
| Element element = ElementLocator.locate(identifier);
|
| - assertSame(constructorElement, element);
|
| + assertSame(classElement, element);
|
| }
|
|
|
| public void test_locate_InstanceCreationExpression_type_simpleIdentifier() throws Exception {
|
| @@ -227,13 +229,15 @@ public class ElementLocatorTest extends ResolverTestCase {
|
| InstanceCreationExpression creation = instanceCreationExpression(
|
| Keyword.NEW,
|
| typeName(identifier));
|
| - // set ConstructorElement
|
| + // set ClassElement
|
| ClassElement classElement = classElement("A");
|
| + identifier.setStaticElement(classElement);
|
| + // set ConstructorElement
|
| ConstructorElement constructorElement = constructorElement(classElement, null);
|
| creation.getConstructorName().setStaticElement(constructorElement);
|
| // verify that "A" is resolved to ConstructorElement
|
| Element element = ElementLocator.locate(identifier);
|
| - assertSame(constructorElement, element);
|
| + assertSame(classElement, element);
|
| }
|
|
|
| public void test_locate_LibraryDirective() throws Exception {
|
|
|