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

Unified Diff: pkg/analysis_server/test/integration/analysis/get_errors.dart

Issue 628783002: Change integration test send...() methods to return structured objects. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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/analysis/get_errors.dart
diff --git a/pkg/analysis_server/test/integration/analysis/get_errors.dart b/pkg/analysis_server/test/integration/analysis/get_errors.dart
index 7cffe378359621011182126f6a858a92a25b2abd..5508afe3ec96b76df91d434964a2df4011c0c287 100644
--- a/pkg/analysis_server/test/integration/analysis/get_errors.dart
+++ b/pkg/analysis_server/test/integration/analysis/get_errors.dart
@@ -13,8 +13,8 @@ import '../integration_tests.dart';
/**
* Base class for testing the "analysis.getErrors" request.
*/
-class AnalysisDomainGetErrorsTest extends
- AbstractAnalysisServerIntegrationTest {
+class AnalysisDomainGetErrorsTest extends AbstractAnalysisServerIntegrationTest
+ {
/**
* True if the "analysis.getErrors" request should be made after analysis is
* complete.
@@ -33,7 +33,9 @@ main() {
standardAnalysisSetup();
Future finishTest() {
return sendAnalysisGetErrors(pathname).then((result) {
- expect(result['errors'], equals(currentAnalysisErrors[pathname]));
+ expect(
+ result.errors.map((error) => error.toJson()),
+ equals(currentAnalysisErrors[pathname]));
});
}
if (afterAnalysis) {
@@ -42,4 +44,4 @@ main() {
return finishTest();
}
}
-}
+}
« no previous file with comments | « pkg/analysis_server/lib/src/protocol.dart ('k') | pkg/analysis_server/test/integration/analysis/get_hover_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698