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

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

Issue 607963002: Fix glob list on Windows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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
« no previous file with comments | « pkg/glob/lib/src/utils.dart ('k') | pkg/pkg.status » ('j') | 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 59c5841d559d257ba2808d863c11d43c9098f540..ff02343116b3d1213ab5c5cf10b92292c3429429 100644
--- a/pkg/glob/test/list_test.dart
+++ b/pkg/glob/test/list_test.dart
@@ -265,10 +265,8 @@ void syncAndAsync(callback(ListFn listFn)) {
return schedule(() {
return new Glob(glob, recursive: recursive)
.list(root: sandbox, followLinks: followLinks)
- .map((entity) {
- return separatorToForwardSlash(
- p.relative(entity.path, from: sandbox));
- }).toList();
+ .map((entity) => p.relative(entity.path, from: sandbox))
+ .toList();
}, 'listing $glob');
});
});
@@ -278,10 +276,8 @@ void syncAndAsync(callback(ListFn listFn)) {
return schedule(() {
return new Glob(glob, recursive: recursive)
.listSync(root: sandbox, followLinks: followLinks)
- .map((entity) {
- return separatorToForwardSlash(
- p.relative(entity.path, from: sandbox));
- }).toList();
+ .map((entity) => p.relative(entity.path, from: sandbox))
+ .toList();
}, 'listing $glob');
});
});
« no previous file with comments | « pkg/glob/lib/src/utils.dart ('k') | pkg/pkg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698