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

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

Issue 482573004: Change analysis server protocol to omit empty lists when optional. (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/server/set_subscriptions_test.dart
diff --git a/pkg/analysis_server/test/integration/server/set_subscriptions_test.dart b/pkg/analysis_server/test/integration/server/set_subscriptions_test.dart
index 51f974a44120dd5fc51ea3149f3d05c8b23ed10d..990be25a13b6d00fab43a8d5510e137008f7a363 100644
--- a/pkg/analysis_server/test/integration/server/set_subscriptions_test.dart
+++ b/pkg/analysis_server/test/integration/server/set_subscriptions_test.dart
@@ -24,7 +24,7 @@ class Test extends AbstractAnalysisServerIntegrationTest {
analysisBegun.complete();
}
});
- return sendServerSetSubscriptions([]).then((_) {
+ return sendServerSetSubscriptions().then((_) {
String pathname = sourcePath('test.dart');
writeFile(pathname, '''
main() {
@@ -35,7 +35,7 @@ main() {
// received.
return analysisBegun.future.then((_) {
expect(statusReceived, isFalse);
- return sendServerSetSubscriptions(['STATUS']).then((_) {
+ return sendServerSetSubscriptions(subscriptions: ['STATUS']).then((_) {
// Tickle test.dart just in case analysis has already completed.
writeFile(pathname, '''
main() {

Powered by Google App Engine
This is Rietveld 408576698