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

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

Issue 533323003: Fix glob match and parse tests for Windows and URL styles. (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/match_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/parse_test.dart
diff --git a/pkg/glob/test/parse_test.dart b/pkg/glob/test/parse_test.dart
index 5ea3f05a359a272599425d58de801879e0dd44f3..fcaa5b4645781f870aee9bb3aa347166ac46aea9 100644
--- a/pkg/glob/test/parse_test.dart
+++ b/pkg/glob/test/parse_test.dart
@@ -3,11 +3,15 @@
// BSD-style license that can be found in the LICENSE file.
import 'package:glob/glob.dart';
+import 'package:path/path.dart' as p;
import 'package:unittest/unittest.dart';
void main() {
test("supports backslash-escaped characters", () {
expect(r"\*[]{,}?()", contains(new Glob(r"\\\*\[\]\{\,\}\?\(\)")));
+ if (p.style != p.Style.windows) {
+ expect(r"foo\bar", contains(new Glob(r"foo\\bar")));
+ }
});
test("disallows an empty glob", () {
« no previous file with comments | « pkg/glob/test/match_test.dart ('k') | pkg/pkg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698