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

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

Issue 3006693002: Add an integration test for kythe support with bug fixes (Closed)
Patch Set: Created 3 years, 4 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/support/protocol_matchers.dart
diff --git a/pkg/analysis_server/test/integration/support/protocol_matchers.dart b/pkg/analysis_server/test/integration/support/protocol_matchers.dart
index 6be1aa11dd6c1fc36a19ab528ea57d0f8aea3bd8..1429149aa2c87dc7db88ea4d3eeb267fb28363ed 100644
--- a/pkg/analysis_server/test/integration/support/protocol_matchers.dart
+++ b/pkg/analysis_server/test/integration/support/protocol_matchers.dart
@@ -716,20 +716,21 @@ final Matcher isImportedElements = new LazyMatcher(() => new MatchesJsonObject(
*
* {
* "source": KytheVName
- * "kind": String
- * "target": KytheVName
+ * "kind": optional String
+ * "target": optional KytheVName
* "fact": String
- * "value": List<int>
+ * "value": optional List<int>
* }
*/
-final Matcher isKytheEntry =
- new LazyMatcher(() => new MatchesJsonObject("KytheEntry", {
- "source": isKytheVName,
- "kind": isString,
- "target": isKytheVName,
- "fact": isString,
- "value": isListOf(isInt)
- }));
+final Matcher isKytheEntry = new LazyMatcher(() => new MatchesJsonObject(
+ "KytheEntry", {
+ "source": isKytheVName,
+ "fact": isString
+ }, optionalFields: {
+ "kind": isString,
+ "target": isKytheVName,
+ "value": isListOf(isInt)
+ }));
/**
* KytheVName
« no previous file with comments | « pkg/analysis_server/test/integration/kythe/test_all.dart ('k') | pkg/analysis_server/test/integration/test_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698