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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/analysis_server/lib/src/services/completion/keyword_computer.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library test.services.completion.dart.keyword; 5 library test.services.completion.dart.keyword;
6 6
7 import 'package:analysis_server/src/protocol.dart'; 7 import 'package:analysis_server/src/protocol.dart';
8 import 'package:analysis_server/src/services/completion/keyword_computer.dart'; 8 import 'package:analysis_server/src/services/completion/keyword_computer.dart';
9 import 'package:analysis_testing/reflective_tests.dart'; 9 import 'package:analysis_testing/reflective_tests.dart';
10 import 'package:analyzer/src/generated/scanner.dart'; 10 import 'package:analyzer/src/generated/scanner.dart';
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 'abstract', 138 'abstract',
139 'class', 139 'class',
140 'const', 140 'const',
141 'export', 141 'export',
142 'final', 142 'final',
143 'import', 143 'import',
144 'part', 144 'part',
145 'typedef', 145 'typedef',
146 'var']); 146 'var']);
147 } 147 }
148
149 test_partial_class() {
150 addTestSource('cl^');
151 expect(computeFast(), isTrue);
152 assertSuggestKeywords(
153 [
154 'abstract',
155 'class',
156 'const',
157 'export',
158 'final',
159 'import',
160 'library',
161 'part',
162 'typedef',
163 'var']);
164 }
165
166 test_partial_class2() {
167 addTestSource('library a; cl^');
168 expect(computeFast(), isTrue);
169 assertSuggestKeywords(
170 [
171 'abstract',
172 'class',
173 'const',
174 'export',
175 'final',
176 'import',
177 'part',
178 'typedef',
179 'var']);
180 }
148 } 181 }
OLDNEW
« 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