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

Side by Side Diff: pkg/analysis_server/test/integration/analysis/highlights_test2.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
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(AnalysisHighlightsTest); 15 defineReflectiveTests(AnalysisHighlightsTest);
16 defineReflectiveTests(AnalysisHighlightsTest_Driver);
17 }); 16 });
18 } 17 }
19 18
20 class AbstractAnalysisHighlightsTest 19 @reflectiveTest
21 extends AbstractAnalysisServerIntegrationTest { 20 class AnalysisHighlightsTest extends AbstractAnalysisServerIntegrationTest {
22 Future startServer( 21 Future startServer(
23 {bool checked: true, int diagnosticPort, int servicesPort}) { 22 {bool checked: true, int diagnosticPort, int servicesPort}) {
24 return server.start( 23 return server.start(
25 checked: checked, 24 checked: checked,
26 diagnosticPort: diagnosticPort, 25 diagnosticPort: diagnosticPort,
27 servicesPort: servicesPort, 26 servicesPort: servicesPort,
28 useAnalysisHighlight2: true); 27 useAnalysisHighlight2: true);
29 } 28 }
30 29
31 test_highlights() { 30 test_highlights() {
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 check(HighlightRegionType.INSTANCE_SETTER_DECLARATION, ['setter']); 151 check(HighlightRegionType.INSTANCE_SETTER_DECLARATION, ['setter']);
153 check(HighlightRegionType.TOP_LEVEL_GETTER_REFERENCE, ['override']); 152 check(HighlightRegionType.TOP_LEVEL_GETTER_REFERENCE, ['override']);
154 check(HighlightRegionType.TOP_LEVEL_VARIABLE_DECLARATION, 153 check(HighlightRegionType.TOP_LEVEL_VARIABLE_DECLARATION,
155 ['topLevelVariable']); 154 ['topLevelVariable']);
156 check(HighlightRegionType.TYPE_NAME_DYNAMIC, ['dynamic']); 155 check(HighlightRegionType.TYPE_NAME_DYNAMIC, ['dynamic']);
157 check(HighlightRegionType.TYPE_PARAMETER, ['TypeParameter']); 156 check(HighlightRegionType.TYPE_PARAMETER, ['TypeParameter']);
158 expect(highlights, isEmpty); 157 expect(highlights, isEmpty);
159 }); 158 });
160 } 159 }
161 } 160 }
162
163 @reflectiveTest
164 class AnalysisHighlightsTest extends AbstractAnalysisHighlightsTest {}
165
166 @reflectiveTest
167 class AnalysisHighlightsTest_Driver extends AbstractAnalysisHighlightsTest {
168 @override
169 bool get enableNewAnalysisDriver => true;
170 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698