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

Unified Diff: pkg/analysis_server/test/protocol_test.dart

Issue 152893004: (TBR) Fix test failures (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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
« no previous file with comments | « pkg/analysis_server/lib/src/protocol.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/protocol_test.dart
diff --git a/pkg/analysis_server/test/protocol_test.dart b/pkg/analysis_server/test/protocol_test.dart
index 9909031c85a0c4d33e8789bef4b6eb51b3ad143f..2bb24fd77aebbe37041c4abd48c581c7b35f6b67 100644
--- a/pkg/analysis_server/test/protocol_test.dart
+++ b/pkg/analysis_server/test/protocol_test.dart
@@ -61,7 +61,7 @@ class ResponseTest {
expect(response.error, isNotNull);
expect(response.toJson(), equals({
Response.ID: '0',
- Response.ERROR: 'Context does not exist'
+ Response.ERROR: {'code': -1, 'message': 'Context does not exist'}
}));
}
@@ -71,7 +71,7 @@ class ResponseTest {
expect(response.error, isNotNull);
expect(response.toJson(), equals({
Response.ID: '',
- Response.ERROR: 'Invalid request'
+ Response.ERROR: {'code': -4, 'message': 'Invalid request'}
}));
}
@@ -81,7 +81,7 @@ class ResponseTest {
expect(response.error, isNotNull);
expect(response.toJson(), equals({
Response.ID: '0',
- Response.ERROR: 'Missing required parameter: x'
+ Response.ERROR: {'code': -5, 'message': 'Missing required parameter: x'}
}));
}
@@ -91,7 +91,7 @@ class ResponseTest {
expect(response.error, isNotNull);
expect(response.toJson(), equals({
Response.ID: '0',
- Response.ERROR: 'Unknown request'
+ Response.ERROR: {'code': -7, 'message': 'Unknown request'}
}));
}
« no previous file with comments | « pkg/analysis_server/lib/src/protocol.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698