Index: pkg/analysis_server/test/domain_completion_test.dart |
diff --git a/pkg/analysis_server/test/domain_completion_test.dart b/pkg/analysis_server/test/domain_completion_test.dart |
index 3435be7040f0698a1a226a3a555d767ae5a45edc..edce0d558bdf13cbaffe7d98a66ef56fa20c2e99 100644 |
--- a/pkg/analysis_server/test/domain_completion_test.dart |
+++ b/pkg/analysis_server/test/domain_completion_test.dart |
@@ -512,6 +512,20 @@ class B extends A {m() {^}} |
assertNoResult('HtmlElement'); |
}); |
} |
+ |
+ test_import_uri_with_trailing() { |
+ addFile('/project/bin/testA.dart', 'library libA;'); |
+ addTestFile(''' |
+ import '/project/bin/t^.dart'; |
+ main() {}'''); |
+ return getSuggestions().then((_) { |
+ expect(replacementOffset, equals(completionOffset - 14)); |
+ expect(replacementLength, equals(5 + 14)); |
+ assertHasResult( |
+ CompletionSuggestionKind.IMPORT, '/project/bin/testA.dart'); |
+ assertNoResult('test'); |
+ }); |
+ } |
} |
class MockRelevancySorter implements DartContributionSorter { |