diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-04-15 10:53:38 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-04-15 10:53:38 +0000 |
commit | a9c53a4fdff1e1724ea8d8483516827bdd94f80e (patch) | |
tree | fb4e193848a68d99dc509bc933f3a814432eb82b | |
parent | INTEGRATION: CWS sb86 (1.61.24); FILE MERGED (diff) | |
download | core-a9c53a4fdff1e1724ea8d8483516827bdd94f80e.tar.gz core-a9c53a4fdff1e1724ea8d8483516827bdd94f80e.zip |
INTEGRATION: CWS sb86 (1.37.80); FILE MERGED
2008/03/26 12:05:34 sb 1.37.80.1: #i80134# accept netbios names in addition to host names when smart-parsing unc paths
-rw-r--r-- | tools/workben/urltest.cxx | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/tools/workben/urltest.cxx b/tools/workben/urltest.cxx index e46fca77849f..542297eb4bd6 100644 --- a/tools/workben/urltest.cxx +++ b/tools/workben/urltest.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: urltest.cxx,v $ - * $Revision: 1.38 $ + * $Revision: 1.39 $ * * This file is part of OpenOffice.org. * @@ -1590,6 +1590,24 @@ main() bSuccess &= assertEqual( url, url, rtl::OUString(urlobj.GetMainURL(INetURLObject::NO_DECODE))); + + // #i80134#: + url = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\\\\foobar\\%20#")); + urlobj = INetURLObject(url, INET_PROT_FILE); + bSuccess &= assertEqual(url, INET_PROT_FILE, urlobj.GetProtocol()); + bSuccess &= assertEqual( + url, + rtl::OUString( + RTL_CONSTASCII_USTRINGPARAM("file://foobar/%2520%23")), + rtl::OUString(urlobj.GetMainURL(INetURLObject::NO_DECODE))); + url = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\\\\foo_bar\\%20#")); + urlobj = INetURLObject(url, INET_PROT_FILE); + bSuccess &= assertEqual(url, INET_PROT_FILE, urlobj.GetProtocol()); + bSuccess &= assertEqual( + url, + rtl::OUString( + RTL_CONSTASCII_USTRINGPARAM("file://foo_bar/%2520%23")), + rtl::OUString(urlobj.GetMainURL(INetURLObject::NO_DECODE))); } if (true) { |