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.manager; | 5 library test.services.completion.manager; |
6 | 6 |
7 import 'package:analysis_services/completion/completion_manager.dart'; | 7 import 'package:analysis_server/src/services/completion/completion_manager.dart'
; |
8 import 'package:analysis_services/src/completion/dart_completion_manager.dart'; | 8 import 'package:analysis_server/src/services/completion/dart_completion_manager.
dart'; |
9 import 'package:analysis_testing/abstract_context.dart'; | 9 import 'package:analysis_testing/abstract_context.dart'; |
10 import 'package:analysis_testing/reflective_tests.dart'; | 10 import 'package:analysis_testing/reflective_tests.dart'; |
11 import 'package:analyzer/src/generated/source.dart'; | 11 import 'package:analyzer/src/generated/source.dart'; |
12 import 'package:unittest/unittest.dart'; | 12 import 'package:unittest/unittest.dart'; |
13 | 13 |
14 main() { | 14 main() { |
15 groupSep = ' | '; | 15 groupSep = ' | '; |
16 runReflectiveTests(CompletionManagerTest); | 16 runReflectiveTests(CompletionManagerTest); |
17 } | 17 } |
18 | 18 |
(...skipping 17 matching lines...) Expand all Loading... |
36 var manager = CompletionManager.create(null, source, 0, null); | 36 var manager = CompletionManager.create(null, source, 0, null); |
37 expect(manager.runtimeType, NoOpCompletionManager); | 37 expect(manager.runtimeType, NoOpCompletionManager); |
38 } | 38 } |
39 | 39 |
40 test_other() { | 40 test_other() { |
41 Source source = addSource('/does/not/exist.foo', ''); | 41 Source source = addSource('/does/not/exist.foo', ''); |
42 var manager = CompletionManager.create(context, source, 0, null); | 42 var manager = CompletionManager.create(context, source, 0, null); |
43 expect(manager.runtimeType, NoOpCompletionManager); | 43 expect(manager.runtimeType, NoOpCompletionManager); |
44 } | 44 } |
45 } | 45 } |
OLD | NEW |