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

Unified Diff: pkg/analysis_server/test/services/refactoring/abstract_refactoring.dart

Issue 506753002: Parameters and validation for the 'Extract Method' refactoring. (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/services/refactoring/abstract_refactoring.dart
diff --git a/pkg/analysis_server/test/services/refactoring/abstract_refactoring.dart b/pkg/analysis_server/test/services/refactoring/abstract_refactoring.dart
index d515c2f8bea6b12806c7ce9978b39707cb4e2d39..21141442c118162d2623e1bcf5d5a2901ee7a668 100644
--- a/pkg/analysis_server/test/services/refactoring/abstract_refactoring.dart
+++ b/pkg/analysis_server/test/services/refactoring/abstract_refactoring.dart
@@ -57,6 +57,15 @@ abstract class RefactoringTest extends AbstractSingleUnitTest {
}
/**
+ * Asserts that [refactoring] final conditions status is OK.
+ */
+ Future assertRefactoringFinalConditionsOK() {
+ return refactoring.checkFinalConditions().then((status) {
+ assertRefactoringStatusOK(status);
+ });
+ }
+
+ /**
* Asserts that [status] has expected severity and message.
*/
void assertRefactoringStatus(RefactoringStatus status,

Powered by Google App Engine
This is Rietveld 408576698