Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/RenameTypeProcessorTest.java

Issue 11312081: Issue 6251. Resolve and rename [id] references in documentation comments (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
*/

Powered by Google App Engine
This is Rietveld 408576698