Index: tests/corelib/uri_test.dart |
diff --git a/tests/corelib/uri_test.dart b/tests/corelib/uri_test.dart |
index 5d8ce189043fe053c0006c2572170227a3f4025d..a9166be3c11d0dd205f6be6fbfef99b9e504cc00 100644 |
--- a/tests/corelib/uri_test.dart |
+++ b/tests/corelib/uri_test.dart |
@@ -150,6 +150,11 @@ testUriPerRFCs() { |
testResolve("s:bar", "bar"); |
testResolve("s:bar", "../bar"); |
+ // Special-case (deliberate non-RFC behavior). |
+ base = Uri.parse("foo/bar"); |
+ testResolve("foo/baz", "baz"); |
+ testResolve("baz", "../baz"); |
+ |
base = Uri.parse("s:/foo"); |
testResolve("s:/bar", "bar"); |
testResolve("s:/bar", "../bar"); |
@@ -164,7 +169,7 @@ testUriPerRFCs() { |
testResolve("./", "../.."); |
testResolve("../", "../../.."); |
testResolve("a/b/", "."); |
- testResolve("/c", "../../c"); |
+ testResolve("c", "../../c"); // Deliberate non-RFC behavior. |
base = Uri.parse("../../a/b/c?_#_"); // Initial ".." in base url. |
testResolve("../../a/d", "../d"); |
testResolve("../../../d", "../../../d"); |