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

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

Issue 800913002: Report pub status (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 cc5e8091f791e9af35cc16f4934de556f56be845..f9cbc014b0d7f63073b0b02ea8bad4fd6946c6e4 100644
--- a/pkg/analysis_server/test/integration/protocol_matchers.dart
+++ b/pkg/analysis_server/test/integration/protocol_matchers.dart
@@ -86,11 +86,13 @@ final Matcher isServerErrorParams = new LazyMatcher(() => new MatchesJsonObject(
*
* {
* "analysis": optional AnalysisStatus
+ * "pub": optional PubStatus
* }
*/
final Matcher isServerStatusParams = new LazyMatcher(() => new MatchesJsonObject(
"server.status params", null, optionalFields: {
- "analysis": isAnalysisStatus
+ "analysis": isAnalysisStatus,
+ "pub": isPubStatus
}));
/**
@@ -1595,6 +1597,18 @@ final Matcher isPosition = new LazyMatcher(() => new MatchesJsonObject(
}));
/**
+ * PubStatus
+ *
+ * {
+ * "isListingPackageDirs": bool
+ * }
+ */
+final Matcher isPubStatus = new LazyMatcher(() => new MatchesJsonObject(
+ "PubStatus", {
+ "isListingPackageDirs": isBool
+ }));
+
+/**
* RefactoringKind
*
* enum {
« 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