| 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 943bfd5260ba4ff095816c45440cdc034dc86b48..9e34c8d25b57becbdba4ed8bd96a475d0b09ce9a 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
|
| @@ -618,7 +618,27 @@ public final class RenameMethodProcessorTest extends RefactoringTest {
|
| "");
|
| }
|
|
|
| - public void test_OK_updateIdentifierInComment() throws Exception {
|
| + public void test_OK_updateComment_constructor() throws Exception {
|
| + setTestUnitContent(
|
| + "// filler filler filler filler filler filler filler filler filler filler",
|
| + "/** Create using [new A.test] constructor. */",
|
| + "class A {",
|
| + " A.test() {}",
|
| + "}",
|
| + "");
|
| + Method method = findElement("test() {}");
|
| + // do rename
|
| + renameMethod(method, "newName");
|
| + assertTestUnitContent(
|
| + "// filler filler filler filler filler filler filler filler filler filler",
|
| + "/** Create using [new A.newName] constructor. */",
|
| + "class A {",
|
| + " A.newName() {}",
|
| + "}",
|
| + "");
|
| + }
|
| +
|
| + public void test_OK_updateInComment_method() throws Exception {
|
| setTestUnitContent(
|
| "// filler filler filler filler filler filler filler filler filler filler",
|
| "/** After creation call [test]. */",
|
|
|