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

Unified Diff: test/posix_test.dart

Issue 1225373003: Fix path.toUri for relative paths. (Closed) Base URL: git@github.com:dart-lang/path@master
Patch Set: merge Created 5 years, 5 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 | « pubspec.yaml ('k') | test/url_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/posix_test.dart
diff --git a/test/posix_test.dart b/test/posix_test.dart
index 25e3419910b2b435830b0d32989922e68b82b03a..2368d9992b465ccc40728242bf1c7d9df74b7834 100644
--- a/test/posix_test.dart
+++ b/test/posix_test.dart
@@ -499,6 +499,7 @@ main() {
test('toUri', () {
expect(context.toUri('/path/to/foo'), Uri.parse('file:///path/to/foo'));
expect(context.toUri('/path/to/foo/'), Uri.parse('file:///path/to/foo/'));
+ expect(context.toUri('path/to/foo/'), Uri.parse('path/to/foo/'));
expect(context.toUri('/'), Uri.parse('file:///'));
expect(context.toUri('foo/bar'), Uri.parse('foo/bar'));
expect(context.toUri('/path/to/foo#bar'),
« no previous file with comments | « pubspec.yaml ('k') | test/url_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698