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

Side by Side Diff: pkg/analysis_server/test/integration/server/set_subscriptions_invalid_service_test.dart

Issue 2844273003: Unify the server and plugin versions of the generators (Closed)
Patch Set: add missed files Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'package:test/test.dart'; 5 import 'package:test/test.dart';
6 import 'package:test_reflective_loader/test_reflective_loader.dart'; 6 import 'package:test_reflective_loader/test_reflective_loader.dart';
7 7
8 import '../integration_tests.dart'; 8 import '../support/integration_tests.dart';
9 9
10 main() { 10 main() {
11 defineReflectiveSuite(() { 11 defineReflectiveSuite(() {
12 defineReflectiveTests(SetSubscriptionsInvalidTest); 12 defineReflectiveTests(SetSubscriptionsInvalidTest);
13 }); 13 });
14 } 14 }
15 15
16 @reflectiveTest 16 @reflectiveTest
17 class SetSubscriptionsInvalidTest 17 class SetSubscriptionsInvalidTest
18 extends AbstractAnalysisServerIntegrationTest { 18 extends AbstractAnalysisServerIntegrationTest {
19 test_setSubscriptions_invalidService() { 19 test_setSubscriptions_invalidService() {
20 // TODO(paulberry): verify that if an invalid service is specified, the 20 // TODO(paulberry): verify that if an invalid service is specified, the
21 // current subscriptions are unchanged. 21 // current subscriptions are unchanged.
22 return server.send("server.setSubscriptions", { 22 return server.send("server.setSubscriptions", {
23 'subscriptions': ['bogus'] 23 'subscriptions': ['bogus']
24 }).then((_) { 24 }).then((_) {
25 fail('setSubscriptions should have produced an error'); 25 fail('setSubscriptions should have produced an error');
26 }, onError: (error) { 26 }, onError: (error) {
27 // The expected error occurred. 27 // The expected error occurred.
28 }); 28 });
29 } 29 }
30 } 30 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698