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

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

Issue 769963003: Add paging support (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 6 years 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 8b02ae3b7557e1bf02464d596c693b9fbb3f6c77..cc5e8091f791e9af35cc16f4934de556f56be845 100644
--- a/pkg/analysis_server/test/integration/protocol_matchers.dart
+++ b/pkg/analysis_server/test/integration/protocol_matchers.dart
@@ -144,6 +144,38 @@ final Matcher isAnalysisGetHoverResult = new LazyMatcher(() => new MatchesJsonOb
}));
/**
+ * analysis.getNavigation params
+ *
+ * {
+ * "file": FilePath
+ * "offset": int
+ * "length": int
+ * }
+ */
+final Matcher isAnalysisGetNavigationParams = new LazyMatcher(() => new MatchesJsonObject(
+ "analysis.getNavigation params", {
+ "file": isFilePath,
+ "offset": isInt,
+ "length": isInt
+ }));
+
+/**
+ * analysis.getNavigation result
+ *
+ * {
+ * "files": List<FilePath>
+ * "targets": List<NavigationTarget>
+ * "regions": List<NavigationRegion>
+ * }
+ */
+final Matcher isAnalysisGetNavigationResult = new LazyMatcher(() => new MatchesJsonObject(
+ "analysis.getNavigation result", {
+ "files": isListOf(isFilePath),
+ "targets": isListOf(isNavigationTarget),
+ "regions": isListOf(isNavigationRegion)
+ }));
+
+/**
* analysis.reanalyze params
*/
final Matcher isAnalysisReanalyzeParams = isNull;
@@ -298,6 +330,24 @@ final Matcher isAnalysisHighlightsParams = new LazyMatcher(() => new MatchesJson
}));
/**
+ * analysis.invalidate params
+ *
+ * {
+ * "file": FilePath
+ * "offset": int
+ * "length": int
+ * "delta": int
+ * }
+ */
+final Matcher isAnalysisInvalidateParams = new LazyMatcher(() => new MatchesJsonObject(
+ "analysis.invalidate params", {
+ "file": isFilePath,
+ "offset": isInt,
+ "length": isInt,
+ "delta": isInt
+ }));
+
+/**
* analysis.navigation params
*
* {
@@ -922,6 +972,7 @@ final Matcher isAnalysisOptions = new LazyMatcher(() => new MatchesJsonObject(
* enum {
* FOLDING
* HIGHLIGHTS
+ * INVALIDATE
* NAVIGATION
* OCCURRENCES
* OUTLINE
@@ -931,6 +982,7 @@ final Matcher isAnalysisOptions = new LazyMatcher(() => new MatchesJsonObject(
final Matcher isAnalysisService = new MatchesEnum("AnalysisService", [
"FOLDING",
"HIGHLIGHTS",
+ "INVALIDATE",
"NAVIGATION",
"OCCURRENCES",
"OUTLINE",
@@ -1690,6 +1742,7 @@ final Matcher isRequestError = new LazyMatcher(() => new MatchesJsonObject(
* RequestErrorCode
*
* enum {
+ * CONTENT_MODIFIED
* GET_ERRORS_INVALID_FILE
* INVALID_OVERLAY_CHANGE
* INVALID_PARAMETER
@@ -1704,6 +1757,7 @@ final Matcher isRequestError = new LazyMatcher(() => new MatchesJsonObject(
* }
*/
final Matcher isRequestErrorCode = new MatchesEnum("RequestErrorCode", [
+ "CONTENT_MODIFIED",
"GET_ERRORS_INVALID_FILE",
"INVALID_OVERLAY_CHANGE",
"INVALID_PARAMETER",
« 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