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.contributor.dart.importuri; | 5 library test.services.completion.contributor.dart.importuri; |
6 | 6 |
7 import 'package:analysis_server/plugin/protocol/protocol.dart'; | 7 import 'package:analysis_server/plugin/protocol/protocol.dart'; |
8 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; | 8 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; |
9 import 'package:analysis_server/src/services/completion/dart/uri_contributor.dar
t'; | 9 import 'package:analysis_server/src/services/completion/dart/uri_contributor.dar
t'; |
10 import 'package:analyzer/file_system/memory_file_system.dart'; | 10 import 'package:analyzer/file_system/memory_file_system.dart'; |
11 import 'package:path/path.dart'; | 11 import 'package:path/path.dart'; |
12 import 'package:test/test.dart'; | 12 import 'package:test/test.dart'; |
13 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 13 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
14 | 14 |
15 import '../../../utils.dart'; | |
16 import 'completion_contributor_util.dart'; | 15 import 'completion_contributor_util.dart'; |
17 | 16 |
18 main() { | 17 main() { |
19 initializeTestEnvironment(); | |
20 defineReflectiveSuite(() { | 18 defineReflectiveSuite(() { |
21 defineReflectiveTests(UriContributorTest); | 19 defineReflectiveTests(UriContributorTest); |
22 defineReflectiveTests(UriContributorWindowsTest); | 20 defineReflectiveTests(UriContributorWindowsTest); |
23 }); | 21 }); |
24 } | 22 } |
25 | 23 |
26 @reflectiveTest | 24 @reflectiveTest |
27 class UriContributorTest extends DartCompletionContributorTest { | 25 class UriContributorTest extends DartCompletionContributorTest { |
28 @override | 26 @override |
29 DartCompletionContributor createContributor() { | 27 DartCompletionContributor createContributor() { |
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 assertNotSuggested('foo/'); | 625 assertNotSuggested('foo/'); |
628 assertNotSuggested('foo/bar.dart'); | 626 assertNotSuggested('foo/bar.dart'); |
629 assertSuggest('../blat.dart', csKind: CompletionSuggestionKind.IMPORT); | 627 assertSuggest('../blat.dart', csKind: CompletionSuggestionKind.IMPORT); |
630 } | 628 } |
631 } | 629 } |
632 | 630 |
633 class _TestWinResourceProvider extends MemoryResourceProvider { | 631 class _TestWinResourceProvider extends MemoryResourceProvider { |
634 @override | 632 @override |
635 Context get pathContext => windows; | 633 Context get pathContext => windows; |
636 } | 634 } |
OLD | NEW |