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

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

Issue 3006033002: Add completion of keywords in partial field declarations (Closed)
Patch Set: Created 3 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
« no previous file with comments | « pkg/analysis_server/lib/src/services/completion/dart/keyword_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/dart/keyword_contributor_test.dart
diff --git a/pkg/analysis_server/test/services/completion/dart/keyword_contributor_test.dart b/pkg/analysis_server/test/services/completion/dart/keyword_contributor_test.dart
index 083203e61467e97ceff176dea57efadca531ec19..d3352c24a8cdc14a584f63c647c810797688a56c 100644
--- a/pkg/analysis_server/test/services/completion/dart/keyword_contributor_test.dart
+++ b/pkg/analysis_server/test/services/completion/dart/keyword_contributor_test.dart
@@ -751,6 +751,28 @@ class KeywordContributorTest extends DartCompletionContributorTest {
assertSuggestKeywords([]);
}
+ @soloTest
danrubel 2017/09/03 16:08:11 Remove @soloTest here and below?
Brian Wilkerson 2017/09/03 20:04:18 Done
+ test_class_member_const_afterStatic() async {
+ addTestSource('''
+class C {
+ static c^
+}
+''');
+ await computeSuggestions();
+ assertSuggestKeywords([Keyword.CONST, Keyword.FINAL]);
+ }
+
+ @soloTest
+ test_class_member_final_afterStatic() async {
+ addTestSource('''
+class C {
+ static f^
+}
+''');
+ await computeSuggestions();
+ assertSuggestKeywords([Keyword.CONST, Keyword.FINAL]);
+ }
+
test_class_name() async {
addTestSource('class ^');
await computeSuggestions();
« no previous file with comments | « pkg/analysis_server/lib/src/services/completion/dart/keyword_contributor.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698