| Index: pkg/analysis_server/test/services/refactoring/rename_constructor_test.dart
|
| diff --git a/pkg/analysis_server/test/services/refactoring/rename_constructor_test.dart b/pkg/analysis_server/test/services/refactoring/rename_constructor_test.dart
|
| index 03b1693e12fc4563c98ad6919964c758da86d287..2bc8dc0548f3c1e9131e42a8b9aec2eb577c7294 100644
|
| --- a/pkg/analysis_server/test/services/refactoring/rename_constructor_test.dart
|
| +++ b/pkg/analysis_server/test/services/refactoring/rename_constructor_test.dart
|
| @@ -55,6 +55,21 @@ class A {
|
| expectedContextSearch: 'newName() {} // existing');
|
| }
|
|
|
| + test_checkInitialConditions_inSDK() async {
|
| + indexTestUnit('''
|
| +main() {
|
| + new String.fromCharCodes([]);
|
| +}
|
| +''');
|
| + createRenameRefactoringAtString('fromCharCodes(');
|
| + // check status
|
| + refactoring.newName = 'newName';
|
| + RefactoringStatus status = await refactoring.checkInitialConditions();
|
| + assertRefactoringStatus(status, RefactoringProblemSeverity.FATAL,
|
| + expectedMessage:
|
| + "The constructor 'String.fromCharCodes' is defined in the SDK, so cannot be renamed.");
|
| + }
|
| +
|
| test_checkNewName() {
|
| indexTestUnit('''
|
| class A {
|
|
|