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