| Index: pkg/analysis_server/test/services/completion/imported_computer_test.dart
|
| diff --git a/pkg/analysis_server/test/services/completion/imported_computer_test.dart b/pkg/analysis_server/test/services/completion/imported_computer_test.dart
|
| index 2943da5f1c112d162098d2e63b0a80b6f5c8e5f5..a1216a90e0929ed08a866bbc8ad8c42d63f5302b 100644
|
| --- a/pkg/analysis_server/test/services/completion/imported_computer_test.dart
|
| +++ b/pkg/analysis_server/test/services/completion/imported_computer_test.dart
|
| @@ -38,6 +38,19 @@ class ImportedTypeComputerTest extends AbstractCompletionTest {
|
| });
|
| }
|
|
|
| + test_function() {
|
| + addSource('/testA.dart', '@deprecated A() {int x;} _B() {}');
|
| + addTestSource('import "/testA.dart"; class C {foo(){^}}');
|
| + return computeFull().then((_) {
|
| + assertSuggestFunction('A', null, true);
|
| + assertNotSuggested('x');
|
| + assertNotSuggested('_B');
|
| + // Should not suggest compilation unit elements
|
| + // which are returned by the LocalComputer
|
| + assertNotSuggested('C');
|
| + });
|
| + }
|
| +
|
| test_class_importHide() {
|
| addSource('/testA.dart', 'class A { } class B { }');
|
| addTestSource('import "/testA.dart" hide ^; class C {}');
|
|
|