| 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'; |
| 8 import 'package:analysis_server/src/services/completion/dart_completion_manager.
dart'; |
| 7 import 'package:analysis_server/src/services/completion/local_computer.dart'; | 9 import 'package:analysis_server/src/services/completion/local_computer.dart'; |
| 8 import 'package:unittest/unittest.dart'; | 10 import 'package:unittest/unittest.dart'; |
| 9 | 11 |
| 10 import '../../reflective_tests.dart'; | 12 import '../../reflective_tests.dart'; |
| 11 import 'completion_test_util.dart'; | 13 import 'completion_test_util.dart'; |
| 12 | 14 |
| 13 main() { | 15 main() { |
| 14 groupSep = ' | '; | 16 groupSep = ' | '; |
| 15 runReflectiveTests(LocalComputerTest); | 17 runReflectiveTests(LocalComputerTest); |
| 16 } | 18 } |
| 17 | 19 |
| 18 @ReflectiveTestCase() | 20 @ReflectiveTestCase() |
| 19 class LocalComputerTest extends AbstractSelectorSuggestionTest { | 21 class LocalComputerTest extends AbstractSelectorSuggestionTest { |
| 20 | 22 |
| 21 @override | 23 @override |
| 24 CompletionSuggestion assertSuggestLocalField(String name, String type, |
| 25 [int relevance = COMPLETION_RELEVANCE_DEFAULT]) { |
| 26 return assertSuggestField(name, type, relevance: relevance); |
| 27 } |
| 28 |
| 29 @override |
| 22 void setUpComputer() { | 30 void setUpComputer() { |
| 23 computer = new LocalComputer(); | 31 computer = new LocalComputer(); |
| 24 } | 32 } |
| 25 } | 33 } |
| OLD | NEW |