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

Unified Diff: pkg/analysis_server/test/package_uri_resolver_test.dart

Issue 372763003: Move file_system libraries into 'analyzer'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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/package_uri_resolver_test.dart
diff --git a/pkg/analysis_server/test/package_uri_resolver_test.dart b/pkg/analysis_server/test/package_uri_resolver_test.dart
index e9c6e281ab04f5f61396a0dd02bf56cec7d9f178..a445239dbef328ae0892eaf76fed597b52817807 100644
--- a/pkg/analysis_server/test/package_uri_resolver_test.dart
+++ b/pkg/analysis_server/test/package_uri_resolver_test.dart
@@ -7,7 +7,8 @@ library test.resolver.package;
import 'dart:collection';
import 'package:analysis_server/src/package_uri_resolver.dart';
-import 'package:analysis_server/src/resource.dart';
+import 'package:analyzer/file_system/file_system.dart';
+import 'package:analyzer/file_system/memory_file_system.dart';
import 'package:analyzer/src/generated/source.dart';
import 'package:unittest/unittest.dart';
@@ -33,12 +34,6 @@ class _PackageMapUriResolverTest {
tearDown() {
}
- void test_isPackageUri() {
- Uri uri = Uri.parse('package:test/test.dart');
- expect(uri.scheme, 'package');
- expect(PackageMapUriResolver.isPackageUri(uri), isTrue);
- }
-
void test_fromEncoding_nonPackage() {
UriResolver resolver = new PackageMapUriResolver(provider, EMPTY_MAP);
Uri uri = Uri.parse('file:/does/not/exist.dart');
@@ -54,6 +49,12 @@ class _PackageMapUriResolverTest {
expect(result.fullName, '/does/not/exist.dart');
}
+ void test_isPackageUri() {
+ Uri uri = Uri.parse('package:test/test.dart');
+ expect(uri.scheme, 'package');
+ expect(PackageMapUriResolver.isPackageUri(uri), isTrue);
+ }
+
void test_isPackageUri_null_scheme() {
Uri uri = Uri.parse('foo.dart');
expect(uri.scheme, '');
« no previous file with comments | « pkg/analysis_server/test/package_map_provider_test.dart ('k') | pkg/analysis_server/test/physical_resource_provider_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698