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

Unified Diff: pkg/scheduled_test/test/descriptor_test.dart

Issue 12310079: Match cross-platform path separators. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/scheduled_test/test/descriptor_test.dart
diff --git a/pkg/scheduled_test/test/descriptor_test.dart b/pkg/scheduled_test/test/descriptor_test.dart
index 1ece013921ee15da55f49a39c6a65267d7defaf2..13d38a74bc7fd1998c61ecae8cd292d60b17c5af 100644
--- a/pkg/scheduled_test/test/descriptor_test.dart
+++ b/pkg/scheduled_test/test/descriptor_test.dart
@@ -123,7 +123,7 @@ void main() {
expect(errors, everyElement(new isInstanceOf<ScheduleError>()));
expect(errors.length, equals(1));
expect(errors.first.error,
- matches(r"^File not found: '[^']+/name\.txt'\.$"));
+ matches(r"^File not found: '[^']+[\\/]name\.txt'\.$"));
});
}, passing: ['test 2']);
@@ -222,9 +222,9 @@ void main() {
expect(errors.first.error,
matches(
r"^Multiple entries found in '[^']+' matching /na\.\.\\\.txt/:\n"
- r"\* .*/nail\.txt\n"
- r"\* .*/name\.txt\n"
- r"\* .*/nape\.txt"));
+ r"\* .*[\\/]nail\.txt\n"
+ r"\* .*[\\/]name\.txt\n"
+ r"\* .*[\\/]nape\.txt"));
});
}, passing: ['test 2']);
@@ -443,7 +443,7 @@ void main() {
expect(errors, everyElement(new isInstanceOf<ScheduleError>()));
expect(errors.length, equals(1));
expect(errors.first.error,
- matches(r"^Directory not found: '[^']+/dir/subdir'\.$"));
+ matches(r"^Directory not found: '[^']+[\\/]dir[\\/]subdir'\.$"));
});
}, passing: ['test 2']);
@@ -485,7 +485,7 @@ void main() {
expect(errors, everyElement(new isInstanceOf<ScheduleError>()));
expect(errors.length, equals(1));
expect(errors.first.error,
- matches(r"^File not found: '[^']+/dir/file2\.txt'\.$"));
+ matches(r"^File not found: '[^']+[\\/]dir[\\/]file2\.txt'\.$"));
});
}, passing: ['test 2']);
@@ -609,7 +609,7 @@ void main() {
expect(errors, everyElement(new isInstanceOf<ScheduleError>()));
expect(errors.length, equals(1));
expect(errors.first.error,
- matches(r"^File not found: '[^']+/dir/file2\.txt'\.$"));
+ matches(r"^File not found: '[^']+[\\/]dir[\\/]file2\.txt'\.$"));
});
}, passing: ['test 2']);
@@ -686,9 +686,9 @@ void main() {
expect(errors.first.error,
matches(
r"^Multiple entries found in '[^']+' matching /d\.r/:\n"
- r"\* .*/dar\n"
- r"\* .*/dir\n"
- r"\* .*/dor"));
+ r"\* .*[\\/]dar\n"
+ r"\* .*[\\/]dir\n"
+ r"\* .*[\\/]dor"));
});
}, passing: ['test 2']);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698