Index: pkg/analyzer/test/file_system/physical_resource_provider_test.dart |
diff --git a/pkg/analyzer/test/file_system/physical_resource_provider_test.dart b/pkg/analyzer/test/file_system/physical_resource_provider_test.dart |
index 939882283488e8295bb92ee53d7d47e09b347645..e1f4a0029b2cb01ed223df9c4444d6832f990fb9 100644 |
--- a/pkg/analyzer/test/file_system/physical_resource_provider_test.dart |
+++ b/pkg/analyzer/test/file_system/physical_resource_provider_test.dart |
@@ -180,6 +180,12 @@ class FileTest extends _BaseTest { |
expect(file.exists, isTrue); |
} |
+ void test_toUri() { |
+ String path = '/foo/file.txt'; |
+ File file = PhysicalResourceProvider.INSTANCE.getFile(path); |
+ expect(file.toUri(), new Uri.file(path)); |
+ } |
+ |
void test_shortName() { |
expect(file.shortName, 'file.txt'); |
} |
@@ -373,6 +379,12 @@ class FolderTest extends _BaseTest { |
parent = grandParent; |
} |
} |
+ |
+ void test_toUri() { |
+ String path = '/foo/directory'; |
+ Folder folder = PhysicalResourceProvider.INSTANCE.getFolder(path); |
+ expect(folder.toUri(), new Uri.directory(path)); |
+ } |
} |
@reflectiveTest |