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

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

Issue 541823004: Decode RefactoringFeedback automatically. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 32ac866da5416309ca1c5ecffe322ba7cf999e1e..17e4a13aaae400f44014a6c73213a49e5bb91589 100644
--- a/pkg/analysis_server/test/integration/protocol_matchers.dart
+++ b/pkg/analysis_server/test/integration/protocol_matchers.dart
@@ -650,7 +650,7 @@ final Matcher isEditGetRefactoringParams = new LazyMatcher(() => new MatchesJson
*
* {
* "problems": List<RefactoringProblem>
- * "feedback": optional object
+ * "feedback": optional RefactoringFeedback
* "change": optional SourceChange
* "potentialEdits": optional List<String>
* }
@@ -659,7 +659,7 @@ final Matcher isEditGetRefactoringResult = new LazyMatcher(() => new MatchesJson
"edit.getRefactoring result", {
"problems": isListOf(isRefactoringProblem)
}, optionalFields: {
- "feedback": isObject,
+ "feedback": isRefactoringFeedback,
"change": isSourceChange,
"potentialEdits": isListOf(isString)
}));
@@ -1533,6 +1533,15 @@ final Matcher isRefactoringMethodParameter = new LazyMatcher(() => new MatchesJs
}));
/**
+ * RefactoringFeedback
+ *
+ * {
+ * }
+ */
+final Matcher isRefactoringFeedback = new LazyMatcher(() => new MatchesJsonObject(
+ "RefactoringFeedback", null));
+
+/**
* RefactoringOptions
*
* {
« no previous file with comments | « pkg/analysis_server/test/integration/integration_test_methods.dart ('k') | pkg/analysis_server/test/protocol_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698