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

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

Issue 11377039: Issue 6251. Resolve and rename type and constructor references in [new Type.name]. (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 26b310908ccd910de1705ebab24e6e7ce1c0808a..17515a2a899b64bb85f6a41b10cd5ba0cc45f8c2 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,13 +394,15 @@ public final class RenameTypeProcessorTest extends RefactoringTest {
"}");
}
- public void test_OK_updateIdentifierInComment() throws Exception {
+ public void test_OK_updateInComment() throws Exception {
setTestUnitContent(
"// filler filler filler filler filler filler filler filler filler filler",
"/** Describe of [Test] here. */",
"class Test {",
+ " Test() {}",
+ " Test.named() {}",
"}",
- "/** Creates new [Test] instance. Test as word. */",
+ "/** Creates new [Test] using [new Test] or [new Test.named]. */",
"Test createTest() => null;",
"");
Type type = findElement("Test {");
@@ -410,8 +412,10 @@ public final class RenameTypeProcessorTest extends RefactoringTest {
"// filler filler filler filler filler filler filler filler filler filler",
"/** Describe of [NewName] here. */",
"class NewName {",
+ " NewName() {}",
+ " NewName.named() {}",
"}",
- "/** Creates new [NewName] instance. Test as word. */",
+ "/** Creates new [NewName] using [new NewName] or [new NewName.named]. */",
"NewName createTest() => null;",
"");
}
« no previous file with comments | « editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/RenameMethodProcessorTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698