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

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

Issue 2820893002: Make the analysis server integration tests driver only. (Closed)
Patch Set: uncomment test code Created 3 years, 8 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
« no previous file with comments | « pkg/analysis_server/test/integration/server/shutdown_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'dart:async'; 5 import 'dart:async';
6 6
7 import 'package:analysis_server/plugin/protocol/protocol.dart'; 7 import 'package:analysis_server/plugin/protocol/protocol.dart';
8 import 'package:test/test.dart'; 8 import 'package:test/test.dart';
9 import 'package:test_reflective_loader/test_reflective_loader.dart'; 9 import 'package:test_reflective_loader/test_reflective_loader.dart';
10 10
11 import '../integration_tests.dart'; 11 import '../integration_tests.dart';
12 12
13 main() { 13 main() {
14 defineReflectiveSuite(() { 14 defineReflectiveSuite(() {
15 defineReflectiveTests(StatusTest); 15 defineReflectiveTests(StatusTest);
16 defineReflectiveTests(StatusTest_Driver);
17 }); 16 });
18 } 17 }
19 18
20 class AbstractStatusTest extends AbstractAnalysisServerIntegrationTest { 19 @reflectiveTest
20 class StatusTest extends AbstractAnalysisServerIntegrationTest {
21 test_status() { 21 test_status() {
22 // After we kick off analysis, we should get one server.status message with 22 // After we kick off analysis, we should get one server.status message with
23 // analyzing=true, and another server.status message after that with 23 // analyzing=true, and another server.status message after that with
24 // analyzing=false. 24 // analyzing=false.
25 Completer analysisBegun = new Completer(); 25 Completer analysisBegun = new Completer();
26 Completer analysisFinished = new Completer(); 26 Completer analysisFinished = new Completer();
27 onServerStatus.listen((ServerStatusParams params) { 27 onServerStatus.listen((ServerStatusParams params) {
28 if (params.analysis != null) { 28 if (params.analysis != null) {
29 if (params.analysis.isAnalyzing) { 29 if (params.analysis.isAnalyzing) {
30 expect(analysisBegun.isCompleted, isFalse); 30 expect(analysisBegun.isCompleted, isFalse);
(...skipping 12 matching lines...) Expand all
43 }'''); 43 }''');
44 standardAnalysisSetup(); 44 standardAnalysisSetup();
45 expect(analysisBegun.isCompleted, isFalse); 45 expect(analysisBegun.isCompleted, isFalse);
46 expect(analysisFinished.isCompleted, isFalse); 46 expect(analysisFinished.isCompleted, isFalse);
47 return analysisBegun.future.then((_) { 47 return analysisBegun.future.then((_) {
48 expect(analysisFinished.isCompleted, isFalse); 48 expect(analysisFinished.isCompleted, isFalse);
49 return analysisFinished.future; 49 return analysisFinished.future;
50 }); 50 });
51 } 51 }
52 } 52 }
53
54 @reflectiveTest
55 class StatusTest extends AbstractStatusTest {}
56
57 @reflectiveTest
58 class StatusTest_Driver extends AbstractStatusTest {
59 @override
60 bool get enableNewAnalysisDriver => true;
61 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/integration/server/shutdown_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698