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.dart.combinator; | 5 library test.services.completion.dart.combinator; |
6 | 6 |
7 import 'package:analysis_server/src/protocol.dart'; | 7 import 'package:analysis_server/src/protocol.dart'; |
8 import 'package:analysis_server/src/services/completion/combinator_computer.dart
'; | 8 import 'package:analysis_server/src/services/completion/combinator_computer.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:unittest/unittest.dart'; | 10 import 'package:unittest/unittest.dart'; |
11 | 11 |
12 import '../../reflective_tests.dart'; | 12 import '../../reflective_tests.dart'; |
13 import 'completion_test_util.dart'; | 13 import 'completion_test_util.dart'; |
14 | 14 |
15 main() { | 15 main() { |
16 groupSep = ' | '; | 16 groupSep = ' | '; |
17 runReflectiveTests(CombinatorComputerTest); | 17 runReflectiveTests(CombinatorComputerTest); |
18 } | 18 } |
19 | 19 |
20 @ReflectiveTestCase() | 20 @reflectiveTest |
21 class CombinatorComputerTest extends AbstractCompletionTest { | 21 class CombinatorComputerTest extends AbstractCompletionTest { |
22 | 22 |
23 @override | 23 @override |
24 void setUpComputer() { | 24 void setUpComputer() { |
25 computer = new CombinatorComputer(); | 25 computer = new CombinatorComputer(); |
26 } | 26 } |
27 | 27 |
28 test_Block_inherited_local() { | 28 test_Block_inherited_local() { |
29 // Block BlockFunctionBody MethodDeclaration ClassDeclaration | 29 // Block BlockFunctionBody MethodDeclaration ClassDeclaration |
30 addTestSource(''' | 30 addTestSource(''' |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 false, | 146 false, |
147 COMPLETION_RELEVANCE_DEFAULT, | 147 COMPLETION_RELEVANCE_DEFAULT, |
148 CompletionSuggestionKind.IDENTIFIER); | 148 CompletionSuggestionKind.IDENTIFIER); |
149 assertNotSuggested('C'); | 149 assertNotSuggested('C'); |
150 assertNotSuggested('D'); | 150 assertNotSuggested('D'); |
151 assertNotSuggested('X'); | 151 assertNotSuggested('X'); |
152 assertNotSuggested('Object'); | 152 assertNotSuggested('Object'); |
153 }); | 153 }); |
154 } | 154 } |
155 } | 155 } |
OLD | NEW |