mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 22:31:50 +00:00
Revert "Fixup DDC test on Windows"
This reverts commit 70020cd30d
.
Reason for revert: Didn't quite work.
Original change's description:
> Fixup DDC test on Windows
>
> Directory.current.path on Windows uses "\" and not "/".
>
> Bug:
> Change-Id: I6ef789d586622f78d0401c1a892f6a475bf6d93a
> Reviewed-on: https://dart-review.googlesource.com/34100
> Reviewed-by: Jens Johansen <jensj@google.com>
TBR=dmitryas@google.com,jensj@google.com
Change-Id: Ied8897801005f1a1b83075c1fb2a0b905129bb18
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/34001
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
This commit is contained in:
parent
06e6f4d105
commit
a35a676f39
|
@ -16,18 +16,14 @@ main(List<String> args) {
|
|||
"file:///C:/full/windows/path.foo");
|
||||
|
||||
// Relative Windows path
|
||||
expect(
|
||||
stringToUri("partial\\windows\\path.foo", windows: true).toString(),
|
||||
"file://${Directory.current.path.replaceAll(r'\', r'/')}"
|
||||
"/partial/windows/path.foo");
|
||||
expect(stringToUri("partial\\windows\\path.foo", windows: true).toString(),
|
||||
"file://${Directory.current.path}/partial/windows/path.foo");
|
||||
|
||||
// Full Unix path
|
||||
expect(stringToUri("/full/path/to/foo.bar", windows: false).toString(),
|
||||
"file:///full/path/to/foo.bar");
|
||||
|
||||
// Relative Unix path
|
||||
expect(
|
||||
stringToUri("partial/path/to/foo.bar", windows: false).toString(),
|
||||
"file://${Directory.current.path.replaceAll(r'\', r'/')}"
|
||||
"/partial/path/to/foo.bar");
|
||||
expect(stringToUri("partial/path/to/foo.bar", windows: false).toString(),
|
||||
"file://${Directory.current.path}/partial/path/to/foo.bar");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue