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.services.completion.invocation; | 5 library test.services.completion.invocation; |
6 | 6 |
7 | 7 |
8 import 'package:analysis_server/src/protocol.dart'; | 8 import 'package:analysis_server/src/protocol.dart'; |
9 import 'package:analysis_server/src/services/completion/dart_completion_manager.
dart'; | 9 import 'package:analysis_server/src/services/completion/dart_completion_manager.
dart'; |
10 import 'package:analysis_server/src/services/completion/invocation_computer.dart
'; | 10 import 'package:analysis_server/src/services/completion/invocation_computer.dart
'; |
11 import 'package:unittest/unittest.dart'; | 11 import 'package:unittest/unittest.dart'; |
12 | 12 |
13 import '../../reflective_tests.dart'; | 13 import '../../reflective_tests.dart'; |
14 import 'completion_test_util.dart'; | 14 import 'completion_test_util.dart'; |
15 | 15 |
16 main() { | 16 main() { |
17 groupSep = ' | '; | 17 groupSep = ' | '; |
18 runReflectiveTests(InvocationComputerTest); | 18 runReflectiveTests(InvocationComputerTest); |
19 } | 19 } |
20 | 20 |
21 @ReflectiveTestCase() | 21 @reflectiveTest |
22 class InvocationComputerTest extends AbstractSelectorSuggestionTest { | 22 class InvocationComputerTest extends AbstractSelectorSuggestionTest { |
23 | 23 |
24 @override | 24 @override |
25 CompletionSuggestion assertSuggestInvocationField(String name, String type, | 25 CompletionSuggestion assertSuggestInvocationField(String name, String type, |
26 {int relevance: COMPLETION_RELEVANCE_DEFAULT, bool isDeprecated: false}) { | 26 {int relevance: COMPLETION_RELEVANCE_DEFAULT, bool isDeprecated: false}) { |
27 return assertSuggestField( | 27 return assertSuggestField( |
28 name, | 28 name, |
29 type, | 29 type, |
30 relevance: relevance, | 30 relevance: relevance, |
31 isDeprecated: isDeprecated); | 31 isDeprecated: isDeprecated); |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 class C { | 171 class C { |
172 set x(int value) {}; | 172 set x(int value) {}; |
173 } | 173 } |
174 void main() {int y = new C().^}'''); | 174 void main() {int y = new C().^}'''); |
175 return computeFull((bool result) { | 175 return computeFull((bool result) { |
176 CompletionSuggestion suggestion = assertSuggestSetter('x'); | 176 CompletionSuggestion suggestion = assertSuggestSetter('x'); |
177 assertHasNoParameterInfo(suggestion); | 177 assertHasNoParameterInfo(suggestion); |
178 }); | 178 }); |
179 } | 179 } |
180 } | 180 } |
OLD | NEW |