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

Unified Diff: test/url_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 | « test/posix_test.dart ('k') | test/windows_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/url_test.dart
diff --git a/test/url_test.dart b/test/url_test.dart
index aca161b41e6e6e4a52eb1c1d7a3974bbebc41b00..854e19abd0bb903da404d53f2e5334b009c3decb 100644
--- a/test/url_test.dart
+++ b/test/url_test.dart
@@ -721,6 +721,7 @@ main() {
Uri.parse('http://dartlang.org/path/to/foo'));
expect(context.toUri('http://dartlang.org/path/to/foo/'),
Uri.parse('http://dartlang.org/path/to/foo/'));
+ expect(context.toUri('path/to/foo/'), Uri.parse('path/to/foo/'));
expect(
context.toUri('file:///path/to/foo'), Uri.parse('file:///path/to/foo'));
expect(context.toUri('foo/bar'), Uri.parse('foo/bar'));
« no previous file with comments | « test/posix_test.dart ('k') | test/windows_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698