| 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.local; | 5 library test.services.completion.dart.local; |
| 6 | 6 |
| 7 import 'package:analysis_server/src/protocol_server.dart'; | 7 import 'package:analysis_server/src/protocol_server.dart'; |
| 8 import 'package:analysis_server/src/services/completion/dart_completion_manager.
dart'; | 8 import 'package:analysis_server/src/services/completion/dart_completion_manager.
dart'; |
| 9 import 'package:analysis_server/src/services/completion/local_computer.dart'; | 9 import 'package:analysis_server/src/services/completion/local_computer.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(LocalComputerTest); | 17 runReflectiveTests(LocalComputerTest); |
| 18 } | 18 } |
| 19 | 19 |
| 20 @ReflectiveTestCase() | 20 @reflectiveTest |
| 21 class LocalComputerTest extends AbstractSelectorSuggestionTest { | 21 class LocalComputerTest extends AbstractSelectorSuggestionTest { |
| 22 | 22 |
| 23 @override | 23 @override |
| 24 CompletionSuggestion assertSuggestLocalField(String name, String type, | 24 CompletionSuggestion assertSuggestLocalField(String name, String type, |
| 25 [int relevance = COMPLETION_RELEVANCE_DEFAULT]) { | 25 [int relevance = COMPLETION_RELEVANCE_DEFAULT]) { |
| 26 return assertSuggestField(name, type, relevance: relevance); | 26 return assertSuggestField(name, type, relevance: relevance); |
| 27 } | 27 } |
| 28 | 28 |
| 29 @override | 29 @override |
| 30 void setUpComputer() { | 30 void setUpComputer() { |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 break; | 302 break; |
| 303 foo: case 2: | 303 foo: case 2: |
| 304 continue ^; | 304 continue ^; |
| 305 case 3: | 305 case 3: |
| 306 break; | 306 break; |
| 307 '''); | 307 '''); |
| 308 expect(computeFast(), isTrue); | 308 expect(computeFast(), isTrue); |
| 309 assertSuggestLabel('foo'); | 309 assertSuggestLabel('foo'); |
| 310 } | 310 } |
| 311 } | 311 } |
| OLD | NEW |