Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Unified Diff: pkg/analysis_server/test/services/completion/imported_computer_test.dart

Issue 580623002: add element to completion suggestions (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {}');

Powered by Google App Engine
This is Rietveld 408576698