Clarify treatment of double slashes in rtl::Uri::convertRelToAbs
Change-Id: I71d0ded04b35472f14e4764a47212c73ac500814
This commit is contained in:
@@ -330,7 +330,11 @@ void Test::test_Uri() {
|
|||||||
{ "http://a/b/..", "../c", "http://a/c" },
|
{ "http://a/b/..", "../c", "http://a/c" },
|
||||||
{ "http://a/./b/", ".././.././../c", "http://a/c" },
|
{ "http://a/./b/", ".././.././../c", "http://a/c" },
|
||||||
{ "http://a", "b", "http://a/b" },
|
{ "http://a", "b", "http://a/b" },
|
||||||
{ "", "http://a/b/../c", "http://a/c" } };
|
{ "", "http://a/b/../c", "http://a/c" },
|
||||||
|
|
||||||
|
{ "http://a/b/c", "d", "http://a/b/d" },
|
||||||
|
{ "http://a/b/c/", "d", "http://a/b/c/d" },
|
||||||
|
{ "http://a/b/c//", "d", "http://a/b/c//d" } };
|
||||||
for (std::size_t i = 0; i < sizeof aRelToAbsTest / sizeof (RelToAbsTest); ++i)
|
for (std::size_t i = 0; i < sizeof aRelToAbsTest / sizeof (RelToAbsTest); ++i)
|
||||||
{
|
{
|
||||||
rtl::OUString aAbs;
|
rtl::OUString aAbs;
|
||||||
|
Reference in New Issue
Block a user