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

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

Issue 531243002: improve keyword suggestions when completing partial keyword (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
« no previous file with comments | « pkg/analysis_server/lib/src/services/completion/keyword_computer.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/keyword_computer_test.dart
diff --git a/pkg/analysis_server/test/services/completion/keyword_computer_test.dart b/pkg/analysis_server/test/services/completion/keyword_computer_test.dart
index 1f0725ecbe6a12b33a1cc61f5fa584f302af67a7..822bfe4bdfe2d000b9580f07862bec8cf452cc20 100644
--- a/pkg/analysis_server/test/services/completion/keyword_computer_test.dart
+++ b/pkg/analysis_server/test/services/completion/keyword_computer_test.dart
@@ -145,4 +145,37 @@ class KeywordComputerTest extends AbstractCompletionTest {
'typedef',
'var']);
}
+
+ test_partial_class() {
+ addTestSource('cl^');
+ expect(computeFast(), isTrue);
+ assertSuggestKeywords(
+ [
+ 'abstract',
+ 'class',
+ 'const',
+ 'export',
+ 'final',
+ 'import',
+ 'library',
+ 'part',
+ 'typedef',
+ 'var']);
+ }
+
+ test_partial_class2() {
+ addTestSource('library a; cl^');
+ expect(computeFast(), isTrue);
+ assertSuggestKeywords(
+ [
+ 'abstract',
+ 'class',
+ 'const',
+ 'export',
+ 'final',
+ 'import',
+ 'part',
+ 'typedef',
+ 'var']);
+ }
}
« no previous file with comments | « pkg/analysis_server/lib/src/services/completion/keyword_computer.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698