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

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

Issue 809213003: Add format API (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add handler hook and missed classes Created 5 years, 11 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 f9cbc014b0d7f63073b0b02ea8bad4fd6946c6e4..75d3d35984da880a686cd61bd50f02fa675724ef 100644
--- a/pkg/analysis_server/test/integration/protocol_matchers.dart
+++ b/pkg/analysis_server/test/integration/protocol_matchers.dart
@@ -600,6 +600,38 @@ final Matcher isSearchResultsParams = new LazyMatcher(() => new MatchesJsonObjec
}));
/**
+ * edit.format params
+ *
+ * {
+ * "file": FilePath
+ * "selectionOffset": int
+ * "selectionLength": int
+ * }
+ */
+final Matcher isEditFormatParams = new LazyMatcher(() => new MatchesJsonObject(
+ "edit.format params", {
+ "file": isFilePath,
+ "selectionOffset": isInt,
+ "selectionLength": isInt
+ }));
+
+/**
+ * edit.format result
+ *
+ * {
+ * "edits": List<SourceEdit>
+ * "selectionOffset": int
+ * "selectionLength": int
+ * }
+ */
+final Matcher isEditFormatResult = new LazyMatcher(() => new MatchesJsonObject(
+ "edit.format result", {
+ "edits": isListOf(isSourceEdit),
+ "selectionOffset": isInt,
+ "selectionLength": isInt
+ }));
+
+/**
* edit.getAssists params
*
* {
« no previous file with comments | « pkg/analysis_server/test/integration/integration_test_methods.dart ('k') | pkg/analysis_server/tool/spec/spec_input.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698