summaryrefslogtreecommitdiff
path: root/tools/workben
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-06-17 10:33:09 +0000
committerRüdiger Timm <rt@openoffice.org>2004-06-17 10:33:09 +0000
commita9f169e0a6e809941b93f7716c93f0f9413660df (patch)
tree815ce06d1d01202a71da6f65016ac6caa8919095 /tools/workben
parentf268aa9271fa6f1dfb6d61fd95c4c348e8409720 (diff)
INTEGRATION: CWS sb17 (1.20.18); FILE MERGED
2004/05/28 08:15:12 sb 1.20.18.2: RESYNC: (1.20-1.21); FILE MERGED 2004/04/06 08:23:10 sb 1.20.18.1: #i21297# Made up for forgotten adaption to removal of vnd.sun.star.script URLs from INetURLObject.
Diffstat (limited to 'tools/workben')
-rw-r--r--tools/workben/urltest.cxx137
1 files changed, 2 insertions, 135 deletions
diff --git a/tools/workben/urltest.cxx b/tools/workben/urltest.cxx
index 225e02ad101a..337eb1da3c7f 100644
--- a/tools/workben/urltest.cxx
+++ b/tools/workben/urltest.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: urltest.cxx,v $
*
- * $Revision: 1.21 $
+ * $Revision: 1.22 $
*
- * last change: $Author: hr $ $Date: 2004-04-13 11:52:10 $
+ * last change: $Author: rt $ $Date: 2004-06-17 11:33:09 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -783,139 +783,6 @@ main()
}
}
- if (true)
- {
- if (INetURLObject(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
- "vnd.sun.star.script:"))).
- HasError())
- {
- printf("BAD vnd.sun.star.script:\n");
- bSuccess = false;
- }
- if (!INetURLObject(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
- "vnd.sun.star.script:abc"))).
- HasError())
- {
- printf("BAD vnd.sun.star.script:abc\n");
- bSuccess = false;
- }
- if (!INetURLObject(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
- "vnd.sun.star.script:a=b,c"))).
- HasError())
- {
- printf("BAD vnd.sun.star.script:a=b,c\n");
- bSuccess = false;
- }
- if (!INetURLObject(rtl::OUString(
- RTL_CONSTASCII_USTRINGPARAM(
- "vnd.sun.star.script:a=b,c=d,"))).
- HasError())
- {
- printf("BAD vnd.sun.star.script:a=b,c=d,\n");
- bSuccess = false;
- }
- if (!INetURLObject(rtl::OUString(
- RTL_CONSTASCII_USTRINGPARAM(
- "vnd.sun.star.script:a=b,,c=d"))).
- HasError())
- {
- printf("BAD vnd.sun.star.script:a=b,,c=d\n");
- bSuccess = false;
- }
- {
- INetURLObject
- aObj(rtl::OUString(
- RTL_CONSTASCII_USTRINGPARAM(
- "vnd.sun.star.script:A%3dB=,b%C3%A4h=b%c3%b6h,"
- "a=3,a=4,x=%3D%2C")));
- {
- bool bFound
- = aObj.getParameter(rtl::OUString(
- RTL_CONSTASCII_USTRINGPARAM(
- "a=")),
- 0);
- if (bFound)
- {
- printf("BAD a=\n");
- bSuccess = false;
- }
- }
- {
- UniString aValue;
- bool bFound
- = aObj.getParameter(rtl::OUString(
- RTL_CONSTASCII_USTRINGPARAM(
- "a=b")),
- &aValue);
- if (!bFound
- || !rtl::OUString(aValue).
- equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("")))
- {
- printf("BAD a=b\n");
- bSuccess = false;
- }
- }
- {
- UniString aValue;
- bool bFound
- = aObj.getParameter(rtl::OUString(
- RTL_CONSTASCII_USTRINGPARAM(
- "A=B")),
- &aValue);
- if (!bFound
- || !rtl::OUString(aValue).
- equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("")))
- {
- printf("BAD A=B\n");
- bSuccess = false;
- }
- }
- {
- sal_Unicode const aKey[] = { 'b', 0xE4, 'h' };
- sal_Unicode const aGoodValue[] = { 'b', 0xF6, 'h' };
- UniString aValue;
- bool bFound = aObj.getParameter(rtl::OUString(aKey, 3),
- &aValue);
- if (!bFound
- || rtl::OUString(aValue) != rtl::OUString(aGoodValue, 3))
- {
- printf("BAD b\\u00E4h\n");
- bSuccess = false;
- }
- }
- {
- UniString aValue;
- bool bFound
- = aObj.getParameter(rtl::OUString(
- RTL_CONSTASCII_USTRINGPARAM(
- "a")),
- &aValue);
- if (!bFound
- || !rtl::OUString(aValue).
- equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("3")))
- {
- printf("BAD a\n");
- bSuccess = false;
- }
- }
- {
- UniString aValue;
- bool bFound
- = aObj.getParameter(rtl::OUString(
- RTL_CONSTASCII_USTRINGPARAM(
- "x")),
- &aValue);
- if (!bFound
- || !rtl::OUString(aValue).
- equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("=,")))
- {
- printf("BAD a\n");
- bSuccess = false;
- }
- }
- }
- }
-
if (false)
{
abbreviate(INetURLObject(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(