| Index: editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/RenameTypeProcessorTest.java
|
| diff --git a/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/RenameTypeProcessorTest.java b/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/RenameTypeProcessorTest.java
|
| index 7240a6ae0fc576bf32ac39ced327e3670f8d3820..ced04eb5cf7f1978fbb71e976a2eaccbd1564f7d 100644
|
| --- a/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/RenameTypeProcessorTest.java
|
| +++ b/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/RenameTypeProcessorTest.java
|
| @@ -394,6 +394,28 @@ public final class RenameTypeProcessorTest extends RefactoringTest {
|
| "}");
|
| }
|
|
|
| + public void test_OK_updateIdentifierInComment() throws Exception {
|
| + setTestUnitContent(
|
| + "// filler filler filler filler filler filler filler filler filler filler",
|
| + "/** Describe of [Test] here. */",
|
| + "class Test {",
|
| + "}",
|
| + "/** Creates new [Test] instance. Test as word. */",
|
| + "Test createTest() => null;",
|
| + "");
|
| + Type type = findElement("Test {");
|
| + // do rename
|
| + renameType(type, "NewName");
|
| + assertTestUnitContent(
|
| + "// filler filler filler filler filler filler filler filler filler filler",
|
| + "/** Describe of [NewName] here. */",
|
| + "class NewName {",
|
| + "}",
|
| + "/** Creates new [NewName] instance. Test as word. */",
|
| + "NewName createTest() => null;",
|
| + "");
|
| + }
|
| +
|
| /**
|
| * http://code.google.com/p/dart/issues/detail?id=1180
|
| */
|
|
|