Chromium Code Reviews| Index: tests/standalone/io/uri_platform_test.dart |
| diff --git a/tests/standalone/io/uri_platform_test.dart b/tests/standalone/io/uri_platform_test.dart |
| index cc677606eababae1fe6a2fca603a4b04a7f00ad3..a42f2de8288238835aab4b82bd62df4cd05014b3 100644 |
| --- a/tests/standalone/io/uri_platform_test.dart |
| +++ b/tests/standalone/io/uri_platform_test.dart |
| @@ -36,7 +36,11 @@ main() { |
| Expect.equals("a/b", new Uri.file("a/b").toFilePath()); |
| Expect.equals("a\\b", new Uri.file("a\\b").toFilePath()); |
| } |
| - |
| - Expect.equals(Uri.base, |
| - new Uri.file(Directory.current.path + Platform.pathSeparator)); |
| + // If the current path is only / (or \), then don't add a separator |
| + // at the end. |
| + Expect.equals( |
| + Uri.base, |
| + (Directory.current.path.toString() != Platform.pathSeparator) |
|
zra
2016/10/22 05:21:07
This should probably compare against path.rootPref
Florian Schneider
2016/11/07 15:32:19
Done.
|
| + ? new Uri.file(Directory.current.path + Platform.pathSeparator) |
| + : new Uri.file(Directory.current.path)); |
| } |