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

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

Issue 481173002: When user renames 'prefix' in 'prefix.Class' she actually wants to rename ImportElement. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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
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 2ba16146f3c447278be030d8eb7458d0642b5a9f..b7b0f7a82a86588b837ecea0e9bebd8decc671cc 100644
--- a/pkg/analysis_server/test/edit/refactoring_test.dart
+++ b/pkg/analysis_server/test/edit/refactoring_test.dart
@@ -86,6 +86,24 @@ main() {
''', 'import ');
}
+ Future test_rename_hasElement_importElement_prefixDecl() {
+ return assertHasRenameRefactoring('''
+import 'dart:math' as math;
+main() {
+ math.PI;
+}
+''', 'math;');
+ }
+
+ Future test_rename_hasElement_importElement_prefixRef() {
Brian Wilkerson 2014/08/18 21:42:34 Possibly test an ambiguous case.
scheglov 2014/08/18 21:49:41 Done.
+ return assertHasRenameRefactoring('''
+import 'dart:math' as math;
+main() {
+ math.PI;
+}
+''', 'math.PI;');
+ }
+
Future test_rename_hasElement_instanceGetter() {
return assertHasRenameRefactoring('''
class A {

Powered by Google App Engine
This is Rietveld 408576698