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

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

Issue 554053002: Return a feedback for the INLINE_METHOD 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
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 abd5ba00e7b3be02ae69e9ff96864c637b7a40e8..ea4f3bd707a89b43e65a584c93b835a0701058fd 100644
--- a/pkg/analysis_server/test/edit/refactoring_test.dart
+++ b/pkg/analysis_server/test/edit/refactoring_test.dart
@@ -584,6 +584,28 @@ main() {
class InlineMethodTest extends _AbstractGetRefactoring_Test {
InlineMethodOptions options = new InlineMethodOptions(true, true);
+ test_feedback() {
+ addTestFile('''
+class A {
+ int f;
+ test(int p) {
+ print(f + p);
+ }
+ main() {
+ test(1);
+ }
+}
+''');
+ return getRefactoringResult(() {
+ return _sendInlineRequest('test(int p)');
+ }).then((result) {
+ InlineMethodFeedback feedback = result.feedback;
+ expect(feedback.className, 'A');
+ expect(feedback.methodName, 'test');
+ expect(feedback.isDeclaration, isTrue);
+ });
+ }
+
test_init_fatalError_noMethod() {
addTestFile('// nothing to inline');
return getRefactoringResult(() {

Powered by Google App Engine
This is Rietveld 408576698