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

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

Issue 1258563008: Proposal for the 'edit.organizeDirectives' request. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Tweaks for review comments. Created 5 years, 5 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/protocol_matchers.dart
diff --git a/pkg/analysis_server/test/integration/protocol_matchers.dart b/pkg/analysis_server/test/integration/protocol_matchers.dart
index 0a5ae192f30e5d23c9857fc9d2b9d3b74047981b..24cc21e68fb66e7ddb44c70c14b091bf43ce9132 100644
--- a/pkg/analysis_server/test/integration/protocol_matchers.dart
+++ b/pkg/analysis_server/test/integration/protocol_matchers.dart
@@ -853,6 +853,30 @@ final Matcher isEditSortMembersResult = new LazyMatcher(() => new MatchesJsonObj
}));
/**
+ * edit.organizeDirectives params
+ *
+ * {
+ * "file": FilePath
+ * }
+ */
+final Matcher isEditOrganizeDirectivesParams = new LazyMatcher(() => new MatchesJsonObject(
+ "edit.organizeDirectives params", {
+ "file": isFilePath
+ }));
+
+/**
+ * edit.organizeDirectives result
+ *
+ * {
+ * "edit": SourceFileEdit
+ * }
+ */
+final Matcher isEditOrganizeDirectivesResult = new LazyMatcher(() => new MatchesJsonObject(
+ "edit.organizeDirectives result", {
+ "edit": isSourceFileEdit
+ }));
+
+/**
* execution.createContext params
*
* {
@@ -1936,6 +1960,7 @@ final Matcher isRequestError = new LazyMatcher(() => new MatchesJsonObject(
*
* enum {
* CONTENT_MODIFIED
+ * FILE_NOT_ANALYZED
* FORMAT_INVALID_FILE
* FORMAT_WITH_ERRORS
* GET_ERRORS_INVALID_FILE
@@ -1946,6 +1971,7 @@ final Matcher isRequestError = new LazyMatcher(() => new MatchesJsonObject(
* INVALID_PARAMETER
* INVALID_REQUEST
* NO_INDEX_GENERATED
+ * ORGANIZE_DIRECTIVES_ERROR
* REFACTORING_REQUEST_CANCELLED
* SERVER_ALREADY_STARTED
* SERVER_ERROR
@@ -1959,6 +1985,7 @@ final Matcher isRequestError = new LazyMatcher(() => new MatchesJsonObject(
*/
final Matcher isRequestErrorCode = new MatchesEnum("RequestErrorCode", [
"CONTENT_MODIFIED",
+ "FILE_NOT_ANALYZED",
"FORMAT_INVALID_FILE",
"FORMAT_WITH_ERRORS",
"GET_ERRORS_INVALID_FILE",
@@ -1969,6 +1996,7 @@ final Matcher isRequestErrorCode = new MatchesEnum("RequestErrorCode", [
"INVALID_PARAMETER",
"INVALID_REQUEST",
"NO_INDEX_GENERATED",
+ "ORGANIZE_DIRECTIVES_ERROR",
"REFACTORING_REQUEST_CANCELLED",
"SERVER_ALREADY_STARTED",
"SERVER_ERROR",

Powered by Google App Engine
This is Rietveld 408576698