| Index: editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/RenameLocalVariableProcessorTest.java
|
| diff --git a/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/RenameLocalVariableProcessorTest.java b/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/RenameLocalVariableProcessorTest.java
|
| index 59b2024436c334bd604c70a4a97d4bbbcac4fc3e..42ca5ec09d5c0a16128b6ebfa08c04df8d7e0bad 100644
|
| --- a/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/RenameLocalVariableProcessorTest.java
|
| +++ b/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/RenameLocalVariableProcessorTest.java
|
| @@ -274,6 +274,22 @@ public final class RenameLocalVariableProcessorTest extends RefactoringTest {
|
| "}");
|
| }
|
|
|
| + public void test_OK_parameter_updateIdentifierInComment() throws Exception {
|
| + setTestUnitContent(
|
| + "// filler filler filler filler filler filler filler filler filler filler",
|
| + "/** Describe [test] here */",
|
| + "f(test) {",
|
| + "}");
|
| + DartVariableDeclaration variable = findElement("test)");
|
| + // do rename
|
| + renameLocalVariable(variable, "newName");
|
| + assertTestUnitContent(
|
| + "// filler filler filler filler filler filler filler filler filler filler",
|
| + "/** Describe [newName] here */",
|
| + "f(newName) {",
|
| + "}");
|
| + }
|
| +
|
| public void test_postCondition_importPrefix() throws Exception {
|
| testProject.setUnitContent(
|
| "LibA.dart",
|
|
|