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

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

Issue 1398293002: Move the wire protocol support into the public API (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Add missed files Created 5 years, 2 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
Index: pkg/analysis_server/test/services/completion/uri_contributor_test.dart
diff --git a/pkg/analysis_server/test/services/completion/uri_contributor_test.dart b/pkg/analysis_server/test/services/completion/uri_contributor_test.dart
index 4a046a160899fe1d98540fe2129ad43a25cedca8..ab605ddd8eba5a56158a49220abf9d0d98fe5a41 100644
--- a/pkg/analysis_server/test/services/completion/uri_contributor_test.dart
+++ b/pkg/analysis_server/test/services/completion/uri_contributor_test.dart
@@ -4,7 +4,7 @@
library test.services.completion.contributor.dart.importuri;
-import 'package:analysis_server/src/protocol.dart';
+import 'package:analysis_server/plugin/protocol/protocol.dart';
import 'package:analysis_server/src/services/completion/dart_completion_manager.dart';
import 'package:analysis_server/src/services/completion/uri_contributor.dart';
import 'package:analyzer/file_system/memory_file_system.dart';
@@ -28,6 +28,16 @@ class UriContributorTest extends AbstractCompletionTest {
contributor = new UriContributor();
}
+ test_export_package2() {
+ addPackageSource('foo', 'foo.dart', 'library foo;');
+ addPackageSource('foo', 'baz/too.dart', 'library too;');
+ addPackageSource('bar', 'bar.dart', 'library bar;');
+ addTestSource('export "package:foo/baz/^" import');
+ computeFast();
+ assertSuggest('package:foo/baz/too.dart',
+ csKind: CompletionSuggestionKind.IMPORT);
+ }
+
test_import() {
addTestSource('import "^"');
computeFast();
@@ -186,16 +196,6 @@ class UriContributorTest extends AbstractCompletionTest {
csKind: CompletionSuggestionKind.IMPORT);
}
- test_export_package2() {
- addPackageSource('foo', 'foo.dart', 'library foo;');
- addPackageSource('foo', 'baz/too.dart', 'library too;');
- addPackageSource('bar', 'bar.dart', 'library bar;');
- addTestSource('export "package:foo/baz/^" import');
- computeFast();
- assertSuggest('package:foo/baz/too.dart',
- csKind: CompletionSuggestionKind.IMPORT);
- }
-
test_import_package_missing_lib() {
var pkgSrc = addPackageSource('bar', 'bar.dart', 'library bar;');
provider.deleteFolder(dirname(pkgSrc.fullName));

Powered by Google App Engine
This is Rietveld 408576698