| Index: pkg/analysis_server/test/services/refactoring/rename_local_test.dart
|
| diff --git a/pkg/analysis_server/test/services/refactoring/rename_local_test.dart b/pkg/analysis_server/test/services/refactoring/rename_local_test.dart
|
| index a92bd0d4d483838350280b15b636d9c82b85d8fe..e454ecec3c28b5b2f89fde5d2a3bd532ab6e8351 100644
|
| --- a/pkg/analysis_server/test/services/refactoring/rename_local_test.dart
|
| +++ b/pkg/analysis_server/test/services/refactoring/rename_local_test.dart
|
| @@ -101,6 +101,32 @@ main() {
|
| return assertRefactoringConditionsOK();
|
| }
|
|
|
| + test_checkFinalConditions_hasLocalVariable_otherForEachLoop() {
|
| + indexTestUnit('''
|
| +main() {
|
| + for (int newName in []) {}
|
| + for (int test in []) {}
|
| +}
|
| +''');
|
| + createRenameRefactoringAtString('test in');
|
| + // check status
|
| + refactoring.newName = 'newName';
|
| + return assertRefactoringConditionsOK();
|
| + }
|
| +
|
| + test_checkFinalConditions_hasLocalVariable_otherForLoop() {
|
| + indexTestUnit('''
|
| +main() {
|
| + for (int newName = 0; newName < 10; newName++) {}
|
| + for (int test = 0; test < 10; test++) {}
|
| +}
|
| +''');
|
| + createRenameRefactoringAtString('test = 0');
|
| + // check status
|
| + refactoring.newName = 'newName';
|
| + return assertRefactoringConditionsOK();
|
| + }
|
| +
|
| test_checkFinalConditions_hasLocalVariable_otherFunction() {
|
| indexTestUnit('''
|
| main() {
|
|
|