Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Unified Diff: pkg/analysis_server/test/edit/refactoring_test.dart

Issue 619223002: Fix for starting 'Rename LibraryElement' refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/lib/src/edit/edit_domain.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « pkg/analysis_server/lib/src/edit/edit_domain.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698