| 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 d987a6b3b1558d18585029c07032c16d1d0575de..24b8df29e614a0241b5a00af2445338ca2919128 100644
|
| --- a/pkg/analysis_server/test/edit/refactoring_test.dart
|
| +++ b/pkg/analysis_server/test/edit/refactoring_test.dart
|
| @@ -1271,6 +1271,39 @@ main() {
|
| });
|
| }
|
|
|
| + test_library_libraryDirective() {
|
| + addTestFile('''
|
| +library aaa.bbb.ccc;
|
| +''');
|
| + return assertSuccessfulRefactoring(() {
|
| + return sendRenameRequest('library aaa', 'my.new_name');
|
| + }, '''
|
| +library my.new_name;
|
| +''');
|
| + }
|
| +
|
| + test_library_libraryDirective_name() {
|
| + addTestFile('''
|
| +library aaa.bbb.ccc;
|
| +''');
|
| + return assertSuccessfulRefactoring(() {
|
| + return sendRenameRequest('aaa', 'my.new_name');
|
| + }, '''
|
| +library my.new_name;
|
| +''');
|
| + }
|
| +
|
| + test_library_libraryDirective_nameDot() {
|
| + addTestFile('''
|
| +library aaa.bbb.ccc;
|
| +''');
|
| + return assertSuccessfulRefactoring(() {
|
| + return sendRenameRequest('.bbb', 'my.new_name');
|
| + }, '''
|
| +library my.new_name;
|
| +''');
|
| + }
|
| +
|
| test_localVariable() {
|
| addTestFile('''
|
| main() {
|
|
|