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

Unified Diff: pkg/analysis_server/test/integration/integration_test_methods.dart

Issue 607813003: Use a separate request for 'Sort members' feature, not a 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/integration/integration_test_methods.dart
diff --git a/pkg/analysis_server/test/integration/integration_test_methods.dart b/pkg/analysis_server/test/integration/integration_test_methods.dart
index 7d0a90c1a986988040265b6324e49b034e7fe866..08e5feffc41654f632cf2d8645c4b12b2bbceb02 100644
--- a/pkg/analysis_server/test/integration/integration_test_methods.dart
+++ b/pkg/analysis_server/test/integration/integration_test_methods.dart
@@ -1202,6 +1202,37 @@ abstract class IntegrationTestMixin {
}
/**
+ * Sort all of the directives, unit and class members of the given Dart file.
+ *
+ * Parameters
+ *
+ * file ( FilePath )
+ *
+ * The Dart file to sort.
+ *
+ * Returns
+ *
+ * edit ( SourceFileEdit )
+ *
+ * The file edit that is to be applied to the given file to effect the
+ * sorting.
+ */
+ Future sendEditSortMembers(String file, {bool checkTypes: true}) {
+ Map<String, dynamic> params = {};
+ params["file"] = file;
+ if (checkTypes) {
+ expect(params, isEditSortMembersParams);
+ }
+ return server.send("edit.sortMembers", params)
+ .then((result) {
+ if (checkTypes) {
+ expect(result, isEditSortMembersResult);
+ }
+ return result;
+ });
+ }
+
+ /**
* Create an execution context for the executable file with the given path.
* The context that is created will persist until execution.deleteContext is
* used to delete it. Clients, therefore, are responsible for managing the

Powered by Google App Engine
This is Rietveld 408576698