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

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

Issue 795633004: filter imported element suggestions to reduce number of results sent to client (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge and fix test Created 6 years 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/test/services/completion/completion_test_util.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/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 bec1272875a751f6bda2402fcb7b0db1f3176e09..6c8cf16d99434cf3cc0e456b87fd3c88d6e1d199 100644
--- a/pkg/analysis_server/test/services/completion/imported_computer_test.dart
+++ b/pkg/analysis_server/test/services/completion/imported_computer_test.dart
@@ -54,6 +54,8 @@ class ImportedComputerTest extends AbstractSelectorSuggestionTest {
* Calculate a new completion at the same location
*/
setUpComputer();
+ int replacementOffset = request.replacementOffset;
+ int replacementLength = request.replacementLength;
request = new DartCompletionRequest(
context,
searchEngine,
@@ -61,6 +63,8 @@ class ImportedComputerTest extends AbstractSelectorSuggestionTest {
completionOffset,
cache,
new CompletionPerformance());
+ request.replacementOffset = replacementOffset;
+ request.replacementLength = replacementLength;
expect(computeFast(), isTrue);
expect(request.unit.element, isNull);
List<CompletionSuggestion> newSuggestions = request.suggestions;
« no previous file with comments | « pkg/analysis_server/test/services/completion/completion_test_util.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698