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

Unified Diff: pkg/glob/test/list_test.dart

Issue 725263002: Fix a bogus exception in Glob. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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/glob/pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/glob/test/list_test.dart
diff --git a/pkg/glob/test/list_test.dart b/pkg/glob/test/list_test.dart
index ff02343116b3d1213ab5c5cf10b92292c3429429..33275243a759cec0b8746ef343f8c05c16f4735e 100644
--- a/pkg/glob/test/list_test.dart
+++ b/pkg/glob/test/list_test.dart
@@ -251,6 +251,18 @@ void main() {
p.join("foo", "baz", "qux")
])));
});
+
+ test("lists a subdirectory that sometimes exists", () {
+ d.dir("top", [
+ d.dir("dir1", [
+ d.dir("subdir", [d.file("file")])
+ ]),
+ d.dir("dir2", [])
+ ]).create();
+
+ expect(list("top/*/subdir/**"),
+ completion(equals([p.join("top", "dir1", "subdir", "file")])));
+ });
});
}
« no previous file with comments | « pkg/glob/pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698