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

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

Issue 549633002: Add support for listing to the glob package. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes 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/test/list_test.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/match_test.dart
diff --git a/pkg/glob/test/match_test.dart b/pkg/glob/test/match_test.dart
index ad9dcf3e116f8b0ad4138fe50c175d3af31ab290..448d60c2d1f656f4a1b7106f22442392af75c177 100644
--- a/pkg/glob/test/match_test.dart
+++ b/pkg/glob/test/match_test.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
import 'package:glob/glob.dart';
+import 'package:glob/src/utils.dart';
import 'package:path/path.dart' as p;
import 'package:unittest/unittest.dart';
@@ -234,8 +235,7 @@ void main() {
});
test("a relative path can be matched by an absolute glob", () {
- var pattern = p.absolute('foo/bar');
- if (p.style == p.Style.windows) pattern = pattern.replaceAll('\\', '/');
+ var pattern = separatorToForwardSlash(p.absolute('foo/bar'));
expect('foo/bar', contains(new Glob(pattern)));
});
« no previous file with comments | « pkg/glob/test/list_test.dart ('k') | pkg/pkg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698