[Libreoffice-commits] core.git: stoc/test

2023-03-22 Thread Stephan Bergmann (via logerrit)
 stoc/test/dump.idl |   85 -
 1 file changed, 85 deletions(-)

New commits:
commit b1851d1afec70402a711e850f27c1c2521a7ba4d
Author: Stephan Bergmann 
AuthorDate: Wed Mar 22 10:06:05 2023 +0100
Commit: Stephan Bergmann 
CommitDate: Wed Mar 22 13:01:11 2023 +

Remove unused file

...that 9111536f1bbaed489ed3ed36315e05d4b3940f5b "Introduce 
css.reflection.Dump
singleton" had added by mistake

Change-Id: I15e273c3186312c45b7d435f983f17eb2f93a56e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149292
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/stoc/test/dump.idl b/stoc/test/dump.idl
deleted file mode 100644
index 65bac74a32bf..
--- a/stoc/test/dump.idl
+++ /dev/null
@@ -1,85 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- */
-
-module org { module libreoffice { module test {
-
-constants Constants {
-const byte byteMin = -128;
-const byte byteMax = 127;
-const short shortMin = -32768;
-const short shortMax = 32767;
-const unsigned short unsignedShortMin = 0;
-const unsigned short unsignedShortMax = 65535;
-const long longMin = -2147483648;
-const long longMax = 2147483647;
-const unsigned long unsignedLongMin = 0;
-const unsigned long unsignedLongMax = 4294967295;
-const hyper hyperMin = -9223372036854775808;
-const hyper hyperMax = 9223372036854775807;
-const unsigned hyper unsignedHyperMin = 0;
-const unsigned hyper unsignedHyperMax = 18446744073709551615;
-};
-
-constants ByteBits {
-const byte BIT0 = 1;
-const byte BIT1 = 2;
-const byte BIT2 = 4;
-const byte BIT3 = 8;
-const byte BIT4 = 16;
-const byte BIT5 = 32;
-const byte BIT6 = 64;
-const byte BIT7 = -128;
-const byte ALL = -1;
-};
-
-constants ShortBits {
-const short BIT0 = 1;
-const short BIT1 = 2;
-const short BIT2 = 4;
-const short BIT3 = 8;
-const short BIT4 = 16;
-const short BIT5 = 32;
-const short BIT6 = 64;
-const short BIT7 = 128;
-const short BIT8 = 256;
-const short BIT9 = 512;
-const short BIT10 = 1024;
-const short BIT11 = 2048;
-const short BIT12 = 4096;
-const short BIT13 = 8192;
-const short BIT14 = 16384;
-const short BIT15 = -32768;
-const short ALL = -1;
-};
-
-constants UnsignedHyperBits {
-const unsigned hyper BIT0 = 1;
-const unsigned hyper BIT1 = 2;
-const unsigned hyper BIT2 = 4;
-const unsigned hyper BIT3 = 8;
-const unsigned hyper BIT4 = 16;
-const unsigned hyper BIT5 = 32;
-const unsigned hyper BIT6 = 64;
-const unsigned hyper BIT7 = 128;
-const unsigned hyper BIT8 = 256;
-const unsigned hyper BIT9 = 512;
-const unsigned hyper BIT10 = 1024;
-const unsigned hyper BIT11 = 2048;
-const unsigned hyper BIT12 = 4096;
-const unsigned hyper BIT13 = 8192;
-const unsigned hyper BIT14 = 16384;
-const unsigned hyper BIT15 = 32768;
-const unsigned hyper BIT62 = 4611686018427387904;
-const unsigned hyper BIT63 = 9223372036854775808;
-const unsigned hyper ALL = 18446744073709551615;
-};
-
-}; }; };
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */


[Libreoffice-commits] core.git: stoc/test testtools/source

2023-01-20 Thread Caolán McNamara (via logerrit)
 stoc/test/testiadapter.cxx |2 +-
 testtools/source/bridgetest/bridgetest.cxx |8 
 testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx |8 
 testtools/source/bridgetest/cli/cli_cs_bridgetest.cs   |8 
 testtools/source/bridgetest/cli/cli_vb_bridgetest.vb   |8 
 5 files changed, 17 insertions(+), 17 deletions(-)

New commits:
commit 7c15ffd4e3bf002c3d4edd758bb3af27b1f6a34e
Author: Caolán McNamara 
AuthorDate: Tue Nov 22 13:09:17 2022 +
Commit: Caolán McNamara 
CommitDate: Fri Jan 20 21:04:33 2023 +

Related: rhbz#2136459 use a value which is exactly representable as a float

20 builds in a row with the old value all succeeded for me on F38 anyway,
so if the problem still exists this almost certainly doesn't do anything.
But it's nice for debugging to use something that is printed the same by a 
debugger as seen in the source.

also see: tdf#125978

Change-Id: I42dc5f18c22acc006bffb57578bacb65dbc16013
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143116
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/stoc/test/testiadapter.cxx b/stoc/test/testiadapter.cxx
index d9fd9560c13a..ca5afc4029f4 100644
--- a/stoc/test/testiadapter.cxx
+++ b/stoc/test/testiadapter.cxx
@@ -750,7 +750,7 @@ sal_Bool performTest( const Reference & xLBT )
 sal_True, '@', 17, 0x1234, 0xfedc, 0x12345678, 0xfedcba98,
 SAL_CONST_INT64(0x123456789abcdef0),
 SAL_CONST_UINT64(0xfedcba9876543210),
-(float)17.0815, M_PI, TestEnum_LOLA, OUString("dumdidum"), xI,
+(float)17.03125, M_PI, TestEnum_LOLA, OUString("dumdidum"), xI,
 Any( , cppu::UnoType::get()) );
 
 OSL_ENSURE( aData.Any == xI, "### unexpected any!" );
diff --git a/testtools/source/bridgetest/bridgetest.cxx 
b/testtools/source/bridgetest/bridgetest.cxx
index 6067e3a5235a..7de0ee794720 100644
--- a/testtools/source/bridgetest/bridgetest.cxx
+++ b/testtools/source/bridgetest/bridgetest.cxx
@@ -376,7 +376,7 @@ static bool performTest(
 assign(
 static_cast(aData), true, '@', 17, 0x1234, 0xFEDC,
 0x12345678, 0xFEDCBA98, SAL_CONST_INT64(0x123456789ABCDEF0),
-SAL_CONST_UINT64(0xFEDCBA9876543210), 17.0815f, M_PI,
+SAL_CONST_UINT64(0xFEDCBA9876543210), 17.03125f, M_PI,
 TestEnum_LOLA, STRING_TEST_CONSTANT, 18, 0x5678, xI,
 Any(, cppu::UnoType::get()));
 bRet &= check(aData.Any == xI, "### unexpected any!");
@@ -732,19 +732,19 @@ static bool performTest(
 assign(
 _arStruct[0], true, '@', 17, 0x1234, 0xFEDC, 0x12345678, 
0xFEDCBA98,
 SAL_CONST_INT64(0x123456789ABCDEF0),
-SAL_CONST_UINT64(0xFEDCBA9876543210), 17.0815f, M_PI,
+SAL_CONST_UINT64(0xFEDCBA9876543210), 17.03125f, M_PI,
 TestEnum_LOLA, STRING_TEST_CONSTANT, 18, 0x5678, _arObj[0],
 Any(&_arObj[0], cppu::UnoType::get()));
 assign(
 _arStruct[1], true, 'A', 17, 0x1234, 0xFEDC, 0x12345678, 
0xFEDCBA98,
 SAL_CONST_INT64(0x123456789ABCDEF0),
-SAL_CONST_UINT64(0xFEDCBA9876543210), 17.0815f, M_PI,
+SAL_CONST_UINT64(0xFEDCBA9876543210), 17.03125f, M_PI,
 TestEnum_TWO, STRING_TEST_CONSTANT, 18, 0x5678, _arObj[1],
 Any(&_arObj[1], cppu::UnoType::get()));
 assign(
 _arStruct[2], true, 'B', 17, 0x1234, 0xFEDC, 0x12345678, 
0xFEDCBA98,
 SAL_CONST_INT64(0x123456789ABCDEF0),
-SAL_CONST_UINT64(0xFEDCBA9876543210), 17.0815f, M_PI,
+SAL_CONST_UINT64(0xFEDCBA9876543210), 17.03125f, M_PI,
 TestEnum_CHECK, STRING_TEST_CONSTANT, 18, 0x5678, _arObj[2],
 Any(&_arObj[2], cppu::UnoType::get()));
 {
diff --git a/testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx 
b/testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx
index 04d9b3066f62..8f2f1a0cf675 100644
--- a/testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx
+++ b/testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx
@@ -376,7 +376,7 @@ static bool performTest(XBridgeTest* xLBT)
 assign( static_cast(aData),
 true, '@', 17, 0x1234, 0xfedc, 0x12345678, 0xfedcba98,
 0x123456789abcdef0, 0xfedcba9876543210,
-17.0815f, M_PI, TestEnum::LOLA,
+17.03125f, M_PI, TestEnum::LOLA,
 Constants::STRING_TEST_CONSTANT, xI,
 aAny);
 
@@ -651,15 +651,15 @@ static bool performSequenceTest(XBridgeTest* xBT)
 arStruct[0] = new TestElement(); arStruct[1] = new TestElement();
 arStruct[2] = new TestElement();
 assign( arStruct[0], true, '@', 17, 0x1234, 0xfedc, 0x12345678, 0xfedcba98,
- 0x123456789abcdef0, 0xfedcba9876543210, 17.0815f, M_PI,
+ 0x123456789abcdef0, 

[Libreoffice-commits] core.git: stoc/test

2021-11-15 Thread Dr. David Alan Gilbert (via logerrit)
 stoc/test/testcorefl.cxx |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a00fab4e6b7b62a2d9447127a0454da06c83ed54
Author: Dr. David Alan Gilbert 
AuthorDate: Thu Nov 11 00:24:08 2021 +
Commit: Michael Stahl 
CommitDate: Mon Nov 15 14:44:07 2021 +0100

test_corefl: Fix OSL_ENSURE bracketing

cppcheck spotted a couple of misplaced brackets where the
error text was ,'d after the end of OSL_ENSURE

Change-Id: I5ab2c79b2438b764956e8064df95e713997ad2c7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125018
Tested-by: Jenkins
Reviewed-by: Michael Stahl 

diff --git a/stoc/test/testcorefl.cxx b/stoc/test/testcorefl.cxx
index 26e469c64063..cd873670b733 100644
--- a/stoc/test/testcorefl.cxx
+++ b/stoc/test/testcorefl.cxx
@@ -139,10 +139,10 @@ static sal_Bool test_corefl( const Reference< 
XIdlReflection > & xRefl )
 typelib_typedescription_release( pTD );
 
 OSL_ENSURE(xClass->getSuperclasses().getLength() == 1, 
"test_RegCoreReflection(): error 9");
-OSL_ENSURE(xClass->getSuperclasses().getArray()[0]->getName() == 
"ModuleC.XInterfaceA"), "test_RegCoreReflection(): error 10";
+OSL_ENSURE(xClass->getSuperclasses().getArray()[0]->getName() == 
"ModuleC.XInterfaceA", "test_RegCoreReflection(): error 10");
 OSL_ENSURE(xClass->getMethods().getLength() == 7, 
"test_RegCoreReflection(): error 11");
 OSL_ENSURE(xA->getMethods().getLength() == 7, "test_RegCoreReflection(): 
error 11a");
-OSL_ENSURE(xClass->getMethods().getArray()[3]->getName() == "methodA"), 
"test_RegCoreReflection(): 12";
+OSL_ENSURE(xClass->getMethods().getArray()[3]->getName() == "methodA", 
"test_RegCoreReflection(): 12");
 
OSL_ENSURE(xClass->getMethods().getArray()[3]->getReturnType()->getTypeClass() 
== TypeClass_VOID, "test_RegCoreReflection(): error 13");
 
OSL_ENSURE(xClass->getMethods().getArray()[3]->getParameterTypes().getLength() 
== 0, "test_RegCoreReflection(): error 14");
 
OSL_ENSURE(xClass->getMethods().getArray()[3]->getExceptionTypes().getLength() 
== 0, "test_RegCoreReflection(): error 15");


[Libreoffice-commits] core.git: stoc/test

2020-05-18 Thread Andrea Gelmini (via logerrit)
 stoc/test/testiadapter.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit da552b29a4c894e02262c3ea26f231cf1a9a0858
Author: Andrea Gelmini 
AuthorDate: Mon May 18 12:52:24 2020 +0200
Commit: Julien Nabet 
CommitDate: Mon May 18 14:26:38 2020 +0200

Fix typo in code

Change-Id: I66c0d8fc4d307c376af20673e756944626df907b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94411
Reviewed-by: Julien Nabet 
Tested-by: Jenkins

diff --git a/stoc/test/testiadapter.cxx b/stoc/test/testiadapter.cxx
index ced8c836f5ea..1525032d2af3 100644
--- a/stoc/test/testiadapter.cxx
+++ b/stoc/test/testiadapter.cxx
@@ -924,7 +924,7 @@ sal_Bool raiseException( const 
Reference & xLBT )
 {
 OSL_ENSURE( aExc.Message.startsWith("dum dum dum I dance around the 
circle..."),
  "### unexpected exception content!" );
-return aExc.Messag.startsWith("dum dum dum I dance around the 
circle...");
+return aExc.Message.startsWith("dum dum dum I dance around the 
circle...");
 }
 return sal_False;
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: stoc/test

2019-08-23 Thread Stephan Bergmann (via logerrit)
 stoc/test/uriproc/test_uriproc.cxx |   12 +++-
 1 file changed, 11 insertions(+), 1 deletion(-)

New commits:
commit c4c2e14b1b2cbd234772ca6f2be2a85528b6bc13
Author: Stephan Bergmann 
AuthorDate: Thu Aug 22 10:34:59 2019 +0200
Commit: Stephan Bergmann 
CommitDate: Fri Aug 23 21:11:38 2019 +0200

Clarify a corner case

Change-Id: I98c29cbdb701f00fa73f9c8107fb4349b48a564e
Reviewed-on: https://gerrit.libreoffice.org/78015
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/stoc/test/uriproc/test_uriproc.cxx 
b/stoc/test/uriproc/test_uriproc.cxx
index 918cd1af1a15..b601eb3a1e04 100644
--- a/stoc/test/uriproc/test_uriproc.cxx
+++ b/stoc/test/uriproc/test_uriproc.cxx
@@ -979,7 +979,17 @@ void Test::testMakeAbsolute() {
   css::uri::RelativeUriExcessParentSegments_REMOVE, "scheme://a#s2" },
 
 { "schema://a", "schema://b/c/../d", true, 
css::uri::RelativeUriExcessParentSegments_REMOVE,
-  "schema://b/d" } };
+  "schema://b/d" },
+
+// Per RFC 3986 Section 5.2.1 "Pre-parse the Base URI", "Normalization 
of the base URI
+// [...; esp. dot-segment removal per Section 6.2.2.3 "Path Segment 
Normalization"] is
+// optional" (and not done by our implemenation), so if the relative 
URI has no scheme and
+// no authority and an empty path, the Base URI's path is used 
unmodified per Section 5.2.2
+// "Transform References" and thus still contains dot-segments:
+{ "scheme:/a/../b/c", "", true, 
css::uri::RelativeUriExcessParentSegments_REMOVE,
+  "scheme:/a/../b/c" },
+{ "scheme:/a/../b/c", "d", true, 
css::uri::RelativeUriExcessParentSegments_REMOVE,
+  "scheme:/b/d" } };
 for (std::size_t i = 0; i < SAL_N_ELEMENTS(data); ++i) {
 css::uno::Reference< css::uri::XUriReference > baseUriRef(
 m_uriFactory->parse(
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: stoc/test

2019-08-19 Thread Stephan Bergmann (via logerrit)
 stoc/test/uriproc/test_uriproc.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cc4084cf6da45c358e88d88fdb340de3ae713039
Author: Stephan Bergmann 
AuthorDate: Mon Aug 19 15:06:40 2019 +0200
Commit: Stephan Bergmann 
CommitDate: Mon Aug 19 18:28:14 2019 +0200

Make test code more readable

`absolute` has the same value as `uriReference` here, so replace it with 
nullptr
as is done in all the other cases where those values are the same.

Change-Id: I81e2842921b99f9c9a4c847a46e74300b5e527ab
Reviewed-on: https://gerrit.libreoffice.org/77720
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/stoc/test/uriproc/test_uriproc.cxx 
b/stoc/test/uriproc/test_uriproc.cxx
index c1ab0f0d89e3..a3f45a98476d 100644
--- a/stoc/test/uriproc/test_uriproc.cxx
+++ b/stoc/test/uriproc/test_uriproc.cxx
@@ -640,7 +640,7 @@ void Test::testMakeRelative() {
 { "scheme://a", "scheme://a/?q", true, true, false, "?q",
   "scheme://a?q" },
 { "scheme://a/", "scheme://a/?q", true, true, false, "?q",
-  "scheme://a/?q" },
+  nullptr },
 { "scheme://a?q", "scheme://a?q", true, true, false, "", nullptr },
 { "scheme://a/?q", "scheme://a?q", true, true, false, "",
   "scheme://a/?q" },
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: stoc/test

2019-08-19 Thread Stephan Bergmann (via logerrit)
 stoc/test/uriproc/test_uriproc.cxx |   14 --
 1 file changed, 8 insertions(+), 6 deletions(-)

New commits:
commit 92d1b0d10ec04f17d116bc54aada652f1c2cac4a
Author: Stephan Bergmann 
AuthorDate: Mon Aug 19 09:04:40 2019 +0200
Commit: Stephan Bergmann 
CommitDate: Mon Aug 19 10:18:31 2019 +0200

Improve test failure output

Change-Id: Ie0dd5b4d0b994ce6e1687bdb21749cb6cafc2366
Reviewed-on: https://gerrit.libreoffice.org/77700
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/stoc/test/uriproc/test_uriproc.cxx 
b/stoc/test/uriproc/test_uriproc.cxx
index dbf095a3bd04..c1ab0f0d89e3 100644
--- a/stoc/test/uriproc/test_uriproc.cxx
+++ b/stoc/test/uriproc/test_uriproc.cxx
@@ -195,7 +195,9 @@ void Test::testParse() {
 css::uno::Reference< css::uri::XUriReference > uriRef(
 m_uriFactory->parse(
 OUString::createFromAscii(data[i].uriReference)));
-CPPUNIT_ASSERT_EQUAL(data[i].schemeSpecificPart != nullptr, 
uriRef.is());
+TEST_ASSERT_EQUAL(
+"testParse", i, data[i].uriReference, data[i].schemeSpecificPart 
!= nullptr,
+uriRef.is());
 if (uriRef.is()) {
 TEST_ASSERT_EQUAL(
 "testParse", i, data[i].uriReference,
@@ -587,11 +589,11 @@ void Test::testMakeAbsolute() {
 css::uno::Reference< css::uri::XUriReference > baseUriRef(
 m_uriFactory->parse(
 OUString::createFromAscii(data[i].baseUriReference)));
-CPPUNIT_ASSERT(baseUriRef.is());
+TEST_ASSERT_EQUAL("testMakeAbsolute", i, data[i].baseUriReference, 
true, baseUriRef.is());
 css::uno::Reference< css::uri::XUriReference > uriRef(
 m_uriFactory->parse(
 OUString::createFromAscii(data[i].uriReference)));
-CPPUNIT_ASSERT(uriRef.is());
+TEST_ASSERT_EQUAL("testMakeAbsolute", i, data[i].uriReference, true, 
uriRef.is());
 css::uno::Reference< css::uri::XUriReference > absolute(
 m_uriFactory->makeAbsolute(
 baseUriRef, uriRef, data[i].processSpecialBaseSegments,
@@ -692,11 +694,11 @@ void Test::testMakeRelative() {
 css::uno::Reference< css::uri::XUriReference > baseUriRef(
 m_uriFactory->parse(
 OUString::createFromAscii(data[i].baseUriReference)));
-CPPUNIT_ASSERT(baseUriRef.is());
+TEST_ASSERT_EQUAL("testMakeRelative", i, data[i].baseUriReference, 
true, baseUriRef.is());
 css::uno::Reference< css::uri::XUriReference > uriRef(
 m_uriFactory->parse(
 OUString::createFromAscii(data[i].uriReference)));
-CPPUNIT_ASSERT(uriRef.is());
+TEST_ASSERT_EQUAL("testMakeRelative", i, data[i].uriReference, true, 
uriRef.is());
 css::uno::Reference< css::uri::XUriReference > relative(
 m_uriFactory->makeRelative(
 baseUriRef, uriRef, data[i].preferAuthorityOverRelativePath,
@@ -714,7 +716,7 @@ void Test::testMakeRelative() {
 m_uriFactory->makeAbsolute(
 baseUriRef, relative, true,
 css::uri::RelativeUriExcessParentSegments_ERROR));
-CPPUNIT_ASSERT(absolute.is());
+TEST_ASSERT_EQUAL("testMakeRelative", i, data[i].uriReference, 
true, absolute.is());
 TEST_ASSERT_EQUAL(
 "testMakeRelative", i, data[i].uriReference,
 OUString::createFromAscii(
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: stoc/test

2019-08-16 Thread Stephan Bergmann (via logerrit)
 stoc/test/uriproc/test_uriproc.cxx |6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit db7701a3072117e9808e73bc3a071b236daacfc5
Author: Stephan Bergmann 
AuthorDate: Fri Aug 16 16:44:38 2019 +0200
Commit: Stephan Bergmann 
CommitDate: Fri Aug 16 21:22:35 2019 +0200

Fix tests taken from RFC 2396

"/g" was missing, and "http:g" had an extra "." (consistently applied to all
three occurrences of "http", but for unclear reasons).

( claims that "?y" is an invalid
example that should be removed, but our algorithm does resolve it to the 
value
 originally given in RFC 2396, so lets keep it for now.)

Change-Id: I3187abd36135723bd13293367a6cb6c06ca70b90
Reviewed-on: https://gerrit.libreoffice.org/77602
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/stoc/test/uriproc/test_uriproc.cxx 
b/stoc/test/uriproc/test_uriproc.cxx
index 7b30dd84375f..dbf095a3bd04 100644
--- a/stoc/test/uriproc/test_uriproc.cxx
+++ b/stoc/test/uriproc/test_uriproc.cxx
@@ -300,6 +300,8 @@ void Test::testMakeAbsolute() {
   css::uri::RelativeUriExcessParentSegments_ERROR, "http://a/b/c/g; },
 { "http://a/b/c/d;p?q;, "g/", true,
   css::uri::RelativeUriExcessParentSegments_ERROR, "http://a/b/c/g/; },
+{ "http://a/b/c/d;p?q;, "/g", true,
+  css::uri::RelativeUriExcessParentSegments_ERROR, "http://a/g; },
 { "http://a/b/c/d;p?q;, "//g", true,
   css::uri::RelativeUriExcessParentSegments_ERROR, "http://g; },
 { "http://a/b/c/d;p?q;, "?y", true,
@@ -396,8 +398,8 @@ void Test::testMakeAbsolute() {
 { "http://a/b/c/d;p?q;, "g#s/../x", true,
   css::uri::RelativeUriExcessParentSegments_ERROR,
   "http://a/b/c/g#s/../x; },
-{ "http.://a/b/c/d;p?q", "http.:g", true,
-  css::uri::RelativeUriExcessParentSegments_ERROR, "http.:g" },
+{ "http://a/b/c/d;p?q;, "http:g", true,
+  css::uri::RelativeUriExcessParentSegments_ERROR, "http:g" },
 
 { "scheme://a", "", true,
   css::uri::RelativeUriExcessParentSegments_ERROR, "scheme://a" },
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: stoc/test

2013-02-23 Thread Hamza Abdelkebir
 stoc/test/testcorefl.cxx|   12 
 stoc/test/testcorefl.idl|2 --
 stoc/test/testiadapter.cxx  |7 +++
 stoc/test/testintrosp.cxx   |   37 -
 stoc/test/testsmgr_cpnt.cxx |2 +-
 5 files changed, 20 insertions(+), 40 deletions(-)

New commits:
commit 978558272caf1b661ba6800d92567843a1dbf1ca
Author: Hamza Abdelkebir hamza.abdelke...@gmail.com
Date:   Sat Feb 23 21:12:06 2013 +0100

translated some german comments, removed commented code blocks

Change-Id: Ia741aaa596b711b80cf8cc1be605e34e19a62f3e
Reviewed-on: https://gerrit.libreoffice.org/2352
Reviewed-by: Thomas Arnhold tho...@arnhold.org
Tested-by: Thomas Arnhold tho...@arnhold.org

diff --git a/stoc/test/testcorefl.cxx b/stoc/test/testcorefl.cxx
index 55f303b..213989a 100644
--- a/stoc/test/testcorefl.cxx
+++ b/stoc/test/testcorefl.cxx
@@ -100,8 +100,6 @@ static sal_Bool test_corefl( const Reference 
XIdlReflection   xRefl )
 
OSL_ENSURE(xHNameAccess-getByHierarchicalName(OUString(ModuleC.aConstUShort))
 == aConstUShort, test_RegCoreReflection(): error 4i);
 
OSL_ENSURE(xHNameAccess-getByHierarchicalName(OUString(ModuleC.aConstLong)) 
== aConstLong, test_RegCoreReflection(): error 4k);
 
OSL_ENSURE(xHNameAccess-getByHierarchicalName(OUString(ModuleC.aConstULong)) 
== aConstULong, test_RegCoreReflection(): error 4m);
-//  
OSL_ENSURE(xHNameAccess-getByHierarchicalName(OUString(ModuleC.aConstFloat)) 
== aConstFloat, test_RegCoreReflection(): error 4o);
-//  
OSL_ENSURE(xHNameAccess-getByHierarchicalName(OUString(ModuleC.aConstDouble))
 == aConstDouble, test_RegCoreReflection(): error 4q);
 
 // Enums
 
@@ -229,15 +227,6 @@ static sal_Bool test_corefl( const Reference 
XIdlReflection   xRefl )
 
 OSL_ENSURE( aAny.getValueTypeName() == [][]ModuleA.StructA, 
test_RegCoreReflection(): error 56 );
 
-//  xClass = xRefl-forName(OUString( com.sun.star.beans.XIntroTest ));
-
-//  OSL_ENSURE(xClass.is(), test_RegCoreReflection(): error 58);
-//  
OSL_ENSURE(xClass-getMethod(OUString(getStrings))-getReturnType()-getTypeClass()
 == TypeClass_SEQUENCE, test_RegCoreReflection(): error 59);
-//  
OSL_ENSURE(xClass-getMethod(OUString(getStrings))-getReturnType()-getComponentType()-getName()
 == OUString(string), test_RegCoreReflection(): error 60);
-
-//  
xClass-getMethod(OUString(getStrings))-getReturnType()-createObject(aAny);
-//  OSL_ENSURE( aAny.getValueTypeName() == []string,  
test_RegCoreReflection(): error 61 );
-
 OSL_ENSURE(xRefl-forName(OUString([][][]unsigned 
long))-getComponentType()-getComponentType()-getComponentType()-getTypeClass()
 == TypeClass_UNSIGNED_LONG, test_RegCoreReflection(): error 62);
 
 try
@@ -259,7 +248,6 @@ static sal_Bool test_corefl( const Reference 
XIdlReflection   xRefl )
 Any gulp;
 rField = Reference XIdlField2  ( 
xRefl-forName(OUString(ModuleA.StructC))-getField(OUString(aString)) , 
UNO_QUERY);
 rField-set( blup, gulp);
-//  
xRefl-forName(OUString(ModuleA.StructC))-getField(OUString(aString))-set(blup,
 gulp);
 OSL_ENSURE(sal_False, test_RegCoreReflection(): error 64);
 return sal_False;
 }
diff --git a/stoc/test/testcorefl.idl b/stoc/test/testcorefl.idl
index 03605a5..9ad7a2a 100644
--- a/stoc/test/testcorefl.idl
+++ b/stoc/test/testcorefl.idl
@@ -71,8 +71,6 @@ module ModuleC
 const unsigned shortaConstUShort= 1;
 const long  aConstLong  = -2;
 const unsigned long aConstULong = 2;
-//  const hyper aConstHyper = -3;
-//  const unsigned hyperaConstUHyper= 3;
 const float aConstFloat = 3.14;
 const doubleaConstDouble= 3.14e-10;
 
diff --git a/stoc/test/testiadapter.cxx b/stoc/test/testiadapter.cxx
index 9aaa29d..4daabdc 100644
--- a/stoc/test/testiadapter.cxx
+++ b/stoc/test/testiadapter.cxx
@@ -899,7 +899,6 @@ sal_Bool raiseException( const 
ReferenceXLanguageBindingTest   xLBT )
 catch (const IllegalArgumentException aExc)
 {
 OSL_ENSURE( aExc.ArgumentPosition == 5 
-//   aExc.Context == xLBT 
  
aExc.Message.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(dum dum dum ich tanz im 
kreis herum...)),
  ### unexpected exception content! );
 
@@ -915,7 +914,7 @@ sal_Bool raiseException( const 
ReferenceXLanguageBindingTest   xLBT )
 }
 catch (const RuntimeException  rExc)
 {
-OSL_ENSURE(//rExc.Context == xLBT 
+OSL_ENSURE(
 
rExc.Message.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(dum dum dum ich tanz im 
kreis herum...)),
 ### unexpected exception content! );
 
@@ -931,10 +930,10 @@ sal_Bool raiseException( const 
ReferenceXLanguageBindingTest   xLBT )
 }
 catch (const Exception  aExc)
 {
-

[Libreoffice-commits] core.git: stoc/test

2013-02-19 Thread Stefan Schick
 stoc/test/testintrosp.cxx |   14 +++---
 1 file changed, 7 insertions(+), 7 deletions(-)

New commits:
commit f8a75e4b225d3a998174f47066b9a72472546767
Author: Stefan Schick stinde...@googlemail.com
Date:   Mon Feb 18 22:01:18 2013 +0100

Translated some comments from german to english

diff --git a/stoc/test/testintrosp.cxx b/stoc/test/testintrosp.cxx
index 56e4f1a..e7c6b85 100644
--- a/stoc/test/testintrosp.cxx
+++ b/stoc/test/testintrosp.cxx
@@ -215,7 +215,7 @@ Sequence Property  
ImplPropertySetInfo::getProperties(void)
 
 if( !pSeq )
 {
-// die Informationen für die Properties Width, Height und Name 
anlegen
+// Create information for the properties Width, Height and Name
 pSeq = new SequenceProperty( 3 );
 Property * pAry = pSeq-getArray();
 
@@ -234,7 +234,7 @@ Sequence Property  
ImplPropertySetInfo::getProperties(void)
 pAry[2].Type = getCppuType( (OUString*) NULL );
 pAry[2].Attributes = TRANSIENT;
 }
-// Die Information über alle drei Properties liefern.
+// Return information about all three properties
 return *pSeq;
 }
 
@@ -249,7 +249,7 @@ Property ImplPropertySetInfo::getPropertyByName(const 
OUString Name)
 if( pAry[i].Name == Name )
 return pAry[i];
 }
-// Property unbekannt, also leere liefern
+// Property unknown, also return empty ones
 return Property();
 }
 
@@ -264,7 +264,7 @@ sal_Bool ImplPropertySetInfo::hasPropertyByName(const 
OUString Name)
 if( pAry[i].Name == Name )
 return sal_True;
 }
-// Property unbekannt, also leere liefern
+// Property unknown, also return empty ones
 return sal_False;
 }
 
@@ -275,7 +275,7 @@ class ImplIntroTest : public ImplIntroTestHelper
 
 friend class ImplPropertySetInfo;
 
-// Properties fuer das PropertySet
+// Properties for the PropertySet
 Any aAnyArray[10];
 
 Reference XPropertySetInfo  m_xMyInfo;
@@ -295,10 +295,10 @@ class ImplIntroTest : public ImplIntroTestHelper
 Sequence Sequence Sequence sal_Int16aMultSeq;
 Reference XIntroTest  m_xIntroTest;
 
-// Daten fuer NameAccess
+// Data for NameAccess
 Reference XIntroTest * pNameAccessTab;
 
-// Daten fuer IndexAccess
+// Data for IndexAccess
 Reference XIntroTest * pIndexAccessTab;
 sal_Int16 iIndexAccessCount;
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits