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

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

Issue 1065063002: suggest loadLibrary is import is deferred (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge and remove unused import Created 5 years, 8 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
« no previous file with comments | « pkg/analysis_server/lib/src/services/completion/prefixed_element_contributor.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/services/completion/prefixed_element_contributor_test.dart
diff --git a/pkg/analysis_server/test/services/completion/prefixed_element_contributor_test.dart b/pkg/analysis_server/test/services/completion/prefixed_element_contributor_test.dart
index 85af87994fa665db38fe83e488bf9d2b82ac0169..790d1ca208272d308e9bb219ff5e8d6bf0c4b5f5 100644
--- a/pkg/analysis_server/test/services/completion/prefixed_element_contributor_test.dart
+++ b/pkg/analysis_server/test/services/completion/prefixed_element_contributor_test.dart
@@ -142,6 +142,7 @@ void f(C<int> c) {
addTestSource('import "dart:async" as bar; foo() {bar.^}');
return computeFull((bool result) {
assertSuggestClass('Future');
+ assertNotSuggested('loadLibrary');
});
}
@@ -153,6 +154,15 @@ void f(C<int> c) {
});
}
+ test_libraryPrefix_deferred() {
+ // SimpleIdentifier PrefixedIdentifier ExpressionStatement
+ addTestSource('import "dart:async" deferred as bar; foo() {bar.^}');
+ return computeFull((bool result) {
+ assertSuggestClass('Future');
+ assertSuggestFunction('loadLibrary', 'void');
+ });
+ }
+
test_local() {
addTestSource('foo() {String x = "bar"; x.^}');
return computeFull((bool result) {
« no previous file with comments | « pkg/analysis_server/lib/src/services/completion/prefixed_element_contributor.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698