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
This commit is contained in:
nweiz@google.com 2013-02-22 23:50:13 +00:00
parent f338f92978
commit 60539a0bae

View file

@ -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']);