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

Unified Diff: pkg/analysis_server/test/services/refactoring/rename_class_member_test.dart

Issue 2183263002: Fix for SearchEngine.searchMemberDeclarations() - search exact names. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 months 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: pkg/analysis_server/test/services/refactoring/rename_class_member_test.dart
diff --git a/pkg/analysis_server/test/services/refactoring/rename_class_member_test.dart b/pkg/analysis_server/test/services/refactoring/rename_class_member_test.dart
index 46ed17360ad8e65d66137c9cfcb8dffe62093989..cc09692c24c34b32ffe72e66de7b50c6693450df 100644
--- a/pkg/analysis_server/test/services/refactoring/rename_class_member_test.dart
+++ b/pkg/analysis_server/test/services/refactoring/rename_class_member_test.dart
@@ -90,6 +90,22 @@ class A {
expectedContextSearch: 'newName() {} // existing');
}
+ test_checkFinalConditions_OK_dropSuffix() async {
+ indexTestUnit(r'''
+abstract class A {
+ void testOld();
+}
+class B implements A {
+ void testOld() {}
+}
+''');
+ createRenameRefactoringAtString('testOld() {}');
+ // check status
+ refactoring.newName = 'test';
+ RefactoringStatus status = await refactoring.checkFinalConditions();
+ assertRefactoringStatusOK(status);
+ }
+
test_checkFinalConditions_OK_noShadow() async {
indexTestUnit('''
class A {

Powered by Google App Engine
This is Rietveld 408576698