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

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

Issue 2564863003: Get all integration tests running with the new driver (Closed)
Patch Set: Created 4 years 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 library test.integration.server.set.subscriptions.invalid.service;
6
7 import 'package:test/test.dart'; 5 import 'package:test/test.dart';
8 import 'package:test_reflective_loader/test_reflective_loader.dart'; 6 import 'package:test_reflective_loader/test_reflective_loader.dart';
9 7
10 import '../integration_tests.dart'; 8 import '../integration_tests.dart';
11 9
12 main() { 10 main() {
13 defineReflectiveSuite(() { 11 defineReflectiveSuite(() {
14 defineReflectiveTests(Test); 12 defineReflectiveTests(SetSubscriptionsTest);
13 defineReflectiveTests(SetSubscriptionsTest_Driver);
15 }); 14 });
16 } 15 }
17 16
18 @reflectiveTest 17 class AbstractSetSubscriptionsTest
19 class Test extends AbstractAnalysisServerIntegrationTest { 18 extends AbstractAnalysisServerIntegrationTest {
20 test_setSubscriptions_invalidService() { 19 test_setSubscriptions_invalidService() {
21 // TODO(paulberry): verify that if an invalid service is specified, the 20 // TODO(paulberry): verify that if an invalid service is specified, the
22 // current subscriptions are unchanged. 21 // current subscriptions are unchanged.
23 return server.send("server.setSubscriptions", { 22 return server.send("server.setSubscriptions", {
24 'subscriptions': ['bogus'] 23 'subscriptions': ['bogus']
25 }).then((_) { 24 }).then((_) {
26 fail('setSubscriptions should have produced an error'); 25 fail('setSubscriptions should have produced an error');
27 }, onError: (error) { 26 }, onError: (error) {
28 // The expected error occurred. 27 // The expected error occurred.
29 }); 28 });
30 } 29 }
31 } 30 }
31
32 @reflectiveTest
33 class SetSubscriptionsTest extends AbstractSetSubscriptionsTest {}
34
35 @reflectiveTest
36 class SetSubscriptionsTest_Driver extends AbstractSetSubscriptionsTest {
37 @override
38 bool get enableNewAnalysisDriver => true;
39 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698