| Index: pkg/analysis_server/test/edit/refactoring_test.dart
|
| diff --git a/pkg/analysis_server/test/edit/refactoring_test.dart b/pkg/analysis_server/test/edit/refactoring_test.dart
|
| index ea4f3bd707a89b43e65a584c93b835a0701058fd..e28c22706b6f521aca72a71feb838c5f3d15c1e0 100644
|
| --- a/pkg/analysis_server/test/edit/refactoring_test.dart
|
| +++ b/pkg/analysis_server/test/edit/refactoring_test.dart
|
| @@ -802,6 +802,31 @@ class A {
|
| ''');
|
| }
|
|
|
| + test_class_fromInstanceCreation() {
|
| + addTestFile('''
|
| +class Test {
|
| + Test() {}
|
| + Test.named() {}
|
| +}
|
| +main() {
|
| + new Test();
|
| + new Test.named();
|
| +}
|
| +''');
|
| + return assertSuccessfulRefactoring(() {
|
| + return sendRenameRequest('Test();', 'NewName');
|
| + }, '''
|
| +class NewName {
|
| + NewName() {}
|
| + NewName.named() {}
|
| +}
|
| +main() {
|
| + new NewName();
|
| + new NewName.named();
|
| +}
|
| +''');
|
| + }
|
| +
|
| test_class_options_fatalError() {
|
| addTestFile('''
|
| class Test {}
|
| @@ -873,7 +898,7 @@ main() {
|
| });
|
| }
|
|
|
| - test_constructor() {
|
| + test_constructor_fromInstanceCreation() {
|
| addTestFile('''
|
| class A {
|
| A.test() {}
|
|
|