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 { |