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

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

Issue 472373002: Support potential edits (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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/protocol_matchers.dart
diff --git a/pkg/analysis_server/test/integration/protocol_matchers.dart b/pkg/analysis_server/test/integration/protocol_matchers.dart
index 03f6aab90e6cf912dc9de7d598eb33f3cc6aa19d..2d6901cca508401c3a553d32b595d662c9997381 100644
--- a/pkg/analysis_server/test/integration/protocol_matchers.dart
+++ b/pkg/analysis_server/test/integration/protocol_matchers.dart
@@ -652,6 +652,7 @@ final Matcher isEditGetRefactoringParams = new LazyMatcher(() => new MatchesJson
* "status": List<RefactoringProblem>
* "feedback": optional object
* "change": optional SourceChange
+ * "potentialChanges": optional List<String>
* }
*/
final Matcher isEditGetRefactoringResult = new LazyMatcher(() => new MatchesJsonObject(
@@ -659,7 +660,8 @@ final Matcher isEditGetRefactoringResult = new LazyMatcher(() => new MatchesJson
"status": isListOf(isRefactoringProblem)
}, optionalFields: {
"feedback": isObject,
- "change": isSourceChange
+ "change": isSourceChange,
+ "potentialChanges": isListOf(isString)
}));
/**
@@ -1690,6 +1692,7 @@ final Matcher isSourceChange = new LazyMatcher(() => new MatchesJsonObject(
* "offset": int
* "length": int
* "replacement": String
+ * "id": optional String
* }
*/
final Matcher isSourceEdit = new LazyMatcher(() => new MatchesJsonObject(
@@ -1697,6 +1700,8 @@ final Matcher isSourceEdit = new LazyMatcher(() => new MatchesJsonObject(
"offset": isInt,
"length": isInt,
"replacement": isString
+ }, optionalFields: {
+ "id": isString
}));
/**

Powered by Google App Engine
This is Rietveld 408576698