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

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

Issue 766323002: Compressed/optimized navigation notification. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updates for review 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 88483a225b59d835baeae19ac6ef59514a5219cf..8b02ae3b7557e1bf02464d596c693b9fbb3f6c77 100644
--- a/pkg/analysis_server/test/integration/protocol_matchers.dart
+++ b/pkg/analysis_server/test/integration/protocol_matchers.dart
@@ -303,12 +303,16 @@ final Matcher isAnalysisHighlightsParams = new LazyMatcher(() => new MatchesJson
* {
* "file": FilePath
* "regions": List<NavigationRegion>
+ * "targets": List<NavigationTarget>
+ * "files": List<FilePath>
* }
*/
final Matcher isAnalysisNavigationParams = new LazyMatcher(() => new MatchesJsonObject(
"analysis.navigation params", {
"file": isFilePath,
- "regions": isListOf(isNavigationRegion)
+ "regions": isListOf(isNavigationRegion),
+ "targets": isListOf(isNavigationTarget),
+ "files": isListOf(isFilePath)
}));
/**
@@ -1424,14 +1428,36 @@ final Matcher isLocation = new LazyMatcher(() => new MatchesJsonObject(
* {
* "offset": int
* "length": int
- * "targets": List<Element>
+ * "targets": List<int>
* }
*/
final Matcher isNavigationRegion = new LazyMatcher(() => new MatchesJsonObject(
"NavigationRegion", {
"offset": isInt,
"length": isInt,
- "targets": isListOf(isElement)
+ "targets": isListOf(isInt)
+ }));
+
+/**
+ * NavigationTarget
+ *
+ * {
+ * "kind": ElementKind
+ * "fileIndex": int
+ * "offset": int
+ * "length": int
+ * "startLine": int
+ * "startColumn": int
+ * }
+ */
+final Matcher isNavigationTarget = new LazyMatcher(() => new MatchesJsonObject(
+ "NavigationTarget", {
+ "kind": isElementKind,
+ "fileIndex": isInt,
+ "offset": isInt,
+ "length": isInt,
+ "startLine": isInt,
+ "startColumn": isInt
}));
/**

Powered by Google App Engine
This is Rietveld 408576698