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

Side by Side Diff: pkg/analysis_server/test/integration/server/set_subscriptions_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;
6
7 import 'dart:async'; 5 import 'dart:async';
8 6
9 import 'package:analysis_server/plugin/protocol/protocol.dart'; 7 import 'package:analysis_server/plugin/protocol/protocol.dart';
10 import 'package:test/test.dart'; 8 import 'package:test/test.dart';
11 import 'package:test_reflective_loader/test_reflective_loader.dart'; 9 import 'package:test_reflective_loader/test_reflective_loader.dart';
12 10
13 import '../integration_tests.dart'; 11 import '../integration_tests.dart';
14 12
15 main() { 13 main() {
16 defineReflectiveSuite(() { 14 defineReflectiveSuite(() {
17 defineReflectiveTests(Test); 15 defineReflectiveTests(SetSubscriptionsTest);
16 defineReflectiveTests(SetSubscriptionsTest_Driver);
18 }); 17 });
19 } 18 }
20 19
21 @reflectiveTest 20 class AbstractSetSubscriptionsTest
22 class Test extends AbstractAnalysisServerIntegrationTest { 21 extends AbstractAnalysisServerIntegrationTest {
23 test_setSubscriptions() { 22 test_setSubscriptions() {
24 bool statusReceived = false; 23 bool statusReceived = false;
25 Completer analysisBegun = new Completer(); 24 Completer analysisBegun = new Completer();
26 onServerStatus.listen((_) { 25 onServerStatus.listen((_) {
27 statusReceived = true; 26 statusReceived = true;
28 }); 27 });
29 onAnalysisErrors.listen((_) { 28 onAnalysisErrors.listen((_) {
30 if (!analysisBegun.isCompleted) { 29 if (!analysisBegun.isCompleted) {
31 analysisBegun.complete(); 30 analysisBegun.complete();
32 } 31 }
(...skipping 20 matching lines...) Expand all
53 var y; 52 var y;
54 }'''); 53 }''');
55 // Analysis should eventually complete, and we should be notified 54 // Analysis should eventually complete, and we should be notified
56 // about it. 55 // about it.
57 return analysisFinished; 56 return analysisFinished;
58 }); 57 });
59 }); 58 });
60 }); 59 });
61 } 60 }
62 } 61 }
62
63 @reflectiveTest
64 class SetSubscriptionsTest extends AbstractSetSubscriptionsTest {}
65
66 @reflectiveTest
67 class SetSubscriptionsTest_Driver extends AbstractSetSubscriptionsTest {
68 @override
69 bool get enableNewAnalysisDriver => true;
70 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698