| 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 3ba46e898290f598ebca2f8fa5191392562f1925..399bdc7b84428ea8c2efe7935397770148318c44 100644
|
| --- a/pkg/analyzer/test/file_system/physical_resource_provider_test.dart
|
| +++ b/pkg/analyzer/test/file_system/physical_resource_provider_test.dart
|
| @@ -293,6 +293,28 @@ main() {
|
| });
|
| });
|
|
|
| + group('getChildAssumingFolder', () {
|
| + test('does not exist', () {
|
| + Folder child = folder.getChildAssumingFolder('no-such-resource');
|
| + expect(child, isNotNull);
|
| + expect(child.exists, isFalse);
|
| + });
|
| +
|
| + test('file', () {
|
| + new io.File(join(path, 'myFile')).createSync();
|
| + Folder child = folder.getChildAssumingFolder('myFile');
|
| + expect(child, isNotNull);
|
| + expect(child.exists, isFalse);
|
| + });
|
| +
|
| + test('folder', () {
|
| + new io.Directory(join(path, 'myFolder')).createSync();
|
| + Folder child = folder.getChildAssumingFolder('myFolder');
|
| + expect(child, isNotNull);
|
| + expect(child.exists, isTrue);
|
| + });
|
| + });
|
| +
|
| test('getChildren', () {
|
| // create 2 files and 1 folder
|
| new io.File(join(path, 'a.txt')).createSync();
|
|
|