summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-07-06 16:57:03 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-07-06 16:57:03 +0200
commit89cc8445f7f76b55e209b8c0c5407b0e592b1117 (patch)
treeaf58ea2e906e68951517387814fe6da9ceda959e
parentdd69bde36a4ee4636933a80c0291486593a37670 (diff)
Clarify treatment of double slashes in rtl::Uri::convertRelToAbs
Change-Id: I71d0ded04b35472f14e4764a47212c73ac500814
-rw-r--r--sal/qa/rtl/uri/rtl_testuri.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sal/qa/rtl/uri/rtl_testuri.cxx b/sal/qa/rtl/uri/rtl_testuri.cxx
index e92afe5777c5..191bf5dc2b53 100644
--- a/sal/qa/rtl/uri/rtl_testuri.cxx
+++ b/sal/qa/rtl/uri/rtl_testuri.cxx
@@ -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", "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)
{
rtl::OUString aAbs;