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

Unified Diff: tests/corelib/uri_test.dart

Issue 335773003: Revert "Try to retain original structure of URI." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | « tests/corelib/uri_query_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/uri_test.dart
diff --git a/tests/corelib/uri_test.dart b/tests/corelib/uri_test.dart
index 298ef12d58e31d04bef534c20ee7ab47d5711804..703515d537341a32863c74bf89b28e3bd4c583c0 100644
--- a/tests/corelib/uri_test.dart
+++ b/tests/corelib/uri_test.dart
@@ -352,17 +352,6 @@ void testNormalization() {
Expect.equals("file:///y", uri.toString());
uri = new Uri(scheme: "file", path: "y");
Expect.equals("file:///y", uri.toString());
-
- // Empty host/query/fragment ensures the delimiter is there.
- // Different from not being there.
- Expect.equals("scheme:/", Uri.parse("scheme:/").toString());
- Expect.equals("scheme:/",
- new Uri(scheme: "scheme", path: "/").toString());
-
- Expect.equals("scheme:///?#", Uri.parse("scheme:///?#").toString());
- Expect.equals("scheme:///?#",
- new Uri(scheme: "scheme", host: "", path: "/",
- query: "", fragment: "").toString());
}
main() {
@@ -381,7 +370,7 @@ main() {
path: "/a/b/c",
query: "query",
fragment: "fragment").toString());
- Expect.stringEquals("/a/b/c/",
+ Expect.stringEquals("//null@null/a/b/c/",
new Uri(
scheme: null,
userInfo: null,
« no previous file with comments | « tests/corelib/uri_query_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698