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

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