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

Unified Diff: pkg/scheduled_test/test/descriptor/directory_test.dart

Issue 766793004: Fix the async compiler, and pub's async compiler test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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
« no previous file with comments | « pkg/scheduled_test/pubspec.yaml ('k') | sdk/lib/_internal/pub/bin/async_compile.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/scheduled_test/test/descriptor/directory_test.dart
diff --git a/pkg/scheduled_test/test/descriptor/directory_test.dart b/pkg/scheduled_test/test/descriptor/directory_test.dart
index d6e029bb5eebc97ddd785da4707097c589779194..4768e0605b9d65c1b5f54ba6dcfb66143508119a 100644
--- a/pkg/scheduled_test/test/descriptor/directory_test.dart
+++ b/pkg/scheduled_test/test/descriptor/directory_test.dart
@@ -439,4 +439,29 @@ void _test(message) {
]));
});
});
+
+ expectTestPasses("new DirectoryDescriptor().fromFilesystem ignores hidden "
+ "files", () {
+ scheduleSandbox();
+
+ d.dir('dir', [
+ d.dir('subdir', [
+ d.file('subfile1.txt', 'subcontents1'),
+ d.file('.hidden', 'subcontents2')
+ ]),
+ d.file('file1.txt', 'contents1'),
+ d.file('.DS_Store', 'contents2')
+ ]).create();
+
+ schedule(() {
+ var descriptor = new d.DirectoryDescriptor.fromFilesystem(
+ "descriptor", path.join(sandbox, 'dir'));
+ expect(descriptor, isDirectoryDescriptor('descriptor', [
+ isDirectoryDescriptor('subdir', [
+ isFileDescriptor('subfile1.txt', 'subcontents1')
+ ]),
+ isFileDescriptor('file1.txt', 'contents1')
+ ]));
+ });
+ });
}
« no previous file with comments | « pkg/scheduled_test/pubspec.yaml ('k') | sdk/lib/_internal/pub/bin/async_compile.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698