From 60539a0bae71dff53cd7a0dd11d1b090f2795b6a Mon Sep 17 00:00:00 2001 From: "nweiz@google.com" Date: Fri, 22 Feb 2013 23:50:13 +0000 Subject: [PATCH] Match cross-platform path separators. TBR Review URL: https://codereview.chromium.org//12310079 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18931 260f80e4-7a28-3924-810f-c04153c831b5 --- pkg/scheduled_test/test/descriptor_test.dart | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pkg/scheduled_test/test/descriptor_test.dart b/pkg/scheduled_test/test/descriptor_test.dart index 1ece013921e..13d38a74bc7 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())); 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())); 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())); 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())); 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']);