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

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

Issue 1364853007: Issue 24440. Fix for renaming libraries using 'part of' directives. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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 | « no previous file | pkg/analyzer/lib/src/generated/ast.dart » ('j') | 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 c5d61569caf648aa19c7972bd04d5ed167b296bc..8ffc3870abbb9ff74770d10d490e3705da3d78cd 100644
--- a/pkg/analysis_server/test/edit/refactoring_test.dart
+++ b/pkg/analysis_server/test/edit/refactoring_test.dart
@@ -1648,6 +1648,24 @@ library my.new_name;
''');
}
+ test_library_partOfDirective() {
+ addFile(
+ '$testFolder/my_lib.dart',
+ '''
+library aaa.bbb.ccc;
+part 'test.dart';
+''');
+ addTestFile('''
+part of aaa.bbb.ccc;
+''');
+ return assertSuccessfulRefactoring(() {
+ return sendRenameRequest('aaa.bb', 'my.new_name');
+ },
+ '''
+part of my.new_name;
+''');
+ }
+
test_localVariable() {
addTestFile('''
main() {
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/ast.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698