| 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 9a75b17b404094782613958f86223dcb96b4abf0..ac40c62565502d5771f75e18ccd63e25e5481c2a 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
|
| @@ -369,6 +369,27 @@ public class DartElementLocatorTest extends TestCase {
|
| 3);
|
| }
|
|
|
| + public void test_FieldElement_onCascade() throws Exception {
|
| + testElementLocator(
|
| + formatLines(
|
| + "// filler filler filler filler filler filler filler filler filler filler filler",
|
| + "process(x) {}",
|
| + "class A {",
|
| + " var foo;",
|
| + " var test;",
|
| + "}",
|
| + "main() {",
|
| + " A a = new A();",
|
| + " a",
|
| + " ..foo = 1",
|
| + " ..test = 2;",
|
| + "}"),
|
| + "test = 2;",
|
| + Field.class,
|
| + "test;",
|
| + 4);
|
| + }
|
| +
|
| public void test_Function_getter_topLevel() throws Exception {
|
| testElementLocator(
|
| formatLines(
|
| @@ -542,6 +563,26 @@ public class DartElementLocatorTest extends TestCase {
|
| 4);
|
| }
|
|
|
| + public void test_Method_onCascade() throws Exception {
|
| + testElementLocator(
|
| + formatLines(
|
| + "// filler filler filler filler filler filler filler filler filler filler filler",
|
| + "process(x) {}",
|
| + "class A {",
|
| + " foo() {}",
|
| + " test() {}",
|
| + "}",
|
| + "main() {",
|
| + " A a = new A();",
|
| + " a..foo()..test();",
|
| + "}",
|
| + ""),
|
| + "test();",
|
| + Method.class,
|
| + "test() {}",
|
| + 4);
|
| + }
|
| +
|
| public void test_Method_onDeclaration() throws Exception {
|
| testElementLocator(
|
| formatLines(
|
|
|