| Index: editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/RenameMethodProcessorTest.java
|
| diff --git a/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/RenameMethodProcessorTest.java b/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/RenameMethodProcessorTest.java
|
| index de71245d4f669cf414f735afca20ba6d44678260..b8ac0863f1ab477f66f80da70352c0d050a54157 100644
|
| --- a/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/RenameMethodProcessorTest.java
|
| +++ b/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/RenameMethodProcessorTest.java
|
| @@ -491,6 +491,32 @@ public final class RenameMethodProcessorTest extends RefactoringTest {
|
| "}");
|
| }
|
|
|
| + public void test_OK_singleUnit_onReference_targetTypePropagated() throws Exception {
|
| + setTestUnitContent(
|
| + "// filler filler filler filler filler filler filler filler filler filler",
|
| + "class A {",
|
| + " test() {}",
|
| + "}",
|
| + "f2() {",
|
| + " var a = new A();",
|
| + " a.test();",
|
| + "}",
|
| + "");
|
| + Method method = findElement("test();");
|
| + // do rename
|
| + renameMethod(method, "newName");
|
| + assertTestUnitContent(
|
| + "// filler filler filler filler filler filler filler filler filler filler",
|
| + "class A {",
|
| + " newName() {}",
|
| + "}",
|
| + "f2() {",
|
| + " var a = new A();",
|
| + " a.newName();",
|
| + "}",
|
| + "");
|
| + }
|
| +
|
| public void test_postCondition_element_shadowedBy_localVariable() throws Exception {
|
| setTestUnitContent(
|
| "// filler filler filler filler filler filler filler filler filler filler",
|
|
|