Index: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/utilities/ast/DartElementLocatorTest.java |
diff --git a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/utilities/ast/DartElementLocatorTest.java b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/utilities/ast/DartElementLocatorTest.java |
index ee0eb18df5ca2a7b1cecf1e0c0cada7f7771921d..c7e52a8966ea996b63931499fb0a5a0f6375f75e 100644 |
--- a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/utilities/ast/DartElementLocatorTest.java |
+++ b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/utilities/ast/DartElementLocatorTest.java |
@@ -188,6 +188,7 @@ public class DartElementLocatorTest extends TestCase { |
" aaa.A a;", |
"}", |
"")).getResource(); |
+ TestProject.waitForAutoBuild(); |
DartLibrary libraryA = testProject.getDartProject().getDartLibrary(libResourceA); |
DartLibrary libraryTest = testProject.getDartProject().getDartLibrary(resourceTest); |
// usage of "aaa" = "libraryA" |
@@ -318,6 +319,25 @@ public class DartElementLocatorTest extends TestCase { |
4); |
} |
+ public void test_Method_call() throws Exception { |
+ testElementLocator( |
+ formatLines( |
+ "// filler filler filler filler filler filler filler filler filler filler filler", |
+ "class A {", |
+ " call() {", |
+ " }", |
+ "}", |
+ "f() {", |
+ " A a = new A();", |
+ " a(); // marker", |
+ "}", |
+ ""), |
+ "; // marker", |
+ Method.class, |
+ "call() {", |
+ 4); |
+ } |
+ |
public void test_Method_getter_onDeclaration() throws Exception { |
testElementLocator( |
formatLines( |