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

Unified Diff: pkg/analysis_server/test/integration/server/set_subscriptions_invalid_service_test.dart

Issue 621383002: Change integration test send...() methods to use structured objects. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reintroduce type checking of server responses 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/server/set_subscriptions_invalid_service_test.dart
diff --git a/pkg/analysis_server/test/integration/server/set_subscriptions_invalid_service_test.dart b/pkg/analysis_server/test/integration/server/set_subscriptions_invalid_service_test.dart
index 5aa10a1247daa4f703205739ba1fb8cd44e5fe08..e807eb5dc758ccff1fd3ae143a095ce7dc8f5747 100644
--- a/pkg/analysis_server/test/integration/server/set_subscriptions_invalid_service_test.dart
+++ b/pkg/analysis_server/test/integration/server/set_subscriptions_invalid_service_test.dart
@@ -14,7 +14,9 @@ class Test extends AbstractAnalysisServerIntegrationTest {
test_setSubscriptions_invalidService() {
// TODO(paulberry): verify that if an invalid service is specified, the
// current subscriptions are unchanged.
- return sendServerSetSubscriptions(['bogus'], checkTypes: false).then((_) {
+ return server.send("server.setSubscriptions", {
+ 'subscriptions': ['bogus']
+ }).then((_) {
fail('setSubscriptions should have produced an error');
}, onError: (error) {
// The expected error occurred.

Powered by Google App Engine
This is Rietveld 408576698