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

Side by Side Diff: pkg/analysis_server/test/integration/analysis/get_hover_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
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:path/path.dart' as path; 8 import 'package:path/path.dart' as path;
9 import 'package:test/test.dart'; 9 import 'package:test/test.dart';
10 import 'package:test_reflective_loader/test_reflective_loader.dart'; 10 import 'package:test_reflective_loader/test_reflective_loader.dart';
11 11
12 import '../integration_tests.dart'; 12 import '../integration_tests.dart';
13 13
14 main() { 14 main() {
15 defineReflectiveSuite(() { 15 defineReflectiveSuite(() {
16 defineReflectiveTests(AnalysisGetHoverIntegrationTest); 16 defineReflectiveTests(AnalysisGetHoverIntegrationTest);
17 defineReflectiveTests(AnalysisGetHoverIntegrationTest_Driver);
18 }); 17 });
19 } 18 }
20 19
21 class AbstractAnalysisGetHoverIntegrationTest 20 @reflectiveTest
21 class AnalysisGetHoverIntegrationTest
22 extends AbstractAnalysisServerIntegrationTest { 22 extends AbstractAnalysisServerIntegrationTest {
23 /** 23 /**
24 * Pathname of the file containing Dart code. 24 * Pathname of the file containing Dart code.
25 */ 25 */
26 String pathname; 26 String pathname;
27 27
28 /** 28 /**
29 * Dart code under test. 29 * Dart code under test.
30 */ 30 */
31 final String text = r''' 31 final String text = r'''
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 tests.add(checkHover( 180 tests.add(checkHover(
181 'func(35', 4, ['func', 'int', 'param'], 'function', ['int', 'void'], 181 'func(35', 4, ['func', 'int', 'param'], 'function', ['int', 'void'],
182 docRegexp: 'Documentation for func')); 182 docRegexp: 'Documentation for func'));
183 tests.add(checkHover('35', 2, null, null, ['int'], 183 tests.add(checkHover('35', 2, null, null, ['int'],
184 isLiteral: true, parameterRegexps: ['int', 'param'])); 184 isLiteral: true, parameterRegexps: ['int', 'param']));
185 tests.add(checkNoHover('comment')); 185 tests.add(checkNoHover('comment'));
186 return Future.wait(tests); 186 return Future.wait(tests);
187 }); 187 });
188 } 188 }
189 } 189 }
190
191 @reflectiveTest
192 class AnalysisGetHoverIntegrationTest
193 extends AbstractAnalysisGetHoverIntegrationTest {}
194
195 @reflectiveTest
196 class AnalysisGetHoverIntegrationTest_Driver
197 extends AbstractAnalysisGetHoverIntegrationTest {
198 @override
199 bool get enableNewAnalysisDriver => true;
200 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698