[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sun Mar 10 16:17:30 UTC 2019
qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv | 2 --
sc/qa/extras/scdatapilotfieldgroupobj.cxx | 7 +++++++
2 files changed, 7 insertions(+), 2 deletions(-)
New commits:
commit 11ea5fe055ed345154138c814e38e54c6624ee89
Author: Jens Carl <j.carl43 at gmx.de>
AuthorDate: Sun Mar 10 06:30:26 2019 +0000
Commit: Jens Carl <j.carl43 at gmx.de>
CommitDate: Sun Mar 10 17:17:08 2019 +0100
tdf#45904 Move XIndexAccess Java tests to C++
Move XIndexAccess Java tests to C++ for ScDataPilotFieldGroupObj.
Change-Id: I8908ede3a83ed9427ea364705020314f42a4fba0
Reviewed-on: https://gerrit.libreoffice.org/68997
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43 at gmx.de>
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv
index 84b7d4d3399f..30984b4a5986 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv
@@ -1,5 +1,3 @@
"ScDataPilotFieldGroupObj";"com::sun::star::container::XNameAccess";"getByName()"
"ScDataPilotFieldGroupObj";"com::sun::star::container::XNameAccess";"getElementNames()"
"ScDataPilotFieldGroupObj";"com::sun::star::container::XNameAccess";"hasByName()"
-"ScDataPilotFieldGroupObj";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScDataPilotFieldGroupObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
diff --git a/sc/qa/extras/scdatapilotfieldgroupobj.cxx b/sc/qa/extras/scdatapilotfieldgroupobj.cxx
index 41e2639be372..27de6ec202b8 100644
--- a/sc/qa/extras/scdatapilotfieldgroupobj.cxx
+++ b/sc/qa/extras/scdatapilotfieldgroupobj.cxx
@@ -10,6 +10,7 @@
#include <test/calc_unoapi_test.hxx>
#include <test/container/xelementaccess.hxx>
#include <test/container/xenumerationaccess.hxx>
+#include <test/container/xindexaccess.hxx>
#include <test/container/xnamed.hxx>
#include <comphelper/types.hxx>
#include <rtl/string.hxx>
@@ -42,6 +43,7 @@ namespace sc_apitest
class ScDataPilotFieldGroupObj : public CalcUnoApiTest,
public apitest::XElementAccess,
public apitest::XEnumerationAccess,
+ public apitest::XIndexAccess,
public apitest::XNamed
{
public:
@@ -60,6 +62,10 @@ public:
// XEnumerationAccess
CPPUNIT_TEST(testCreateEnumeration);
+ // XIndexAccess
+ CPPUNIT_TEST(testGetByIndex);
+ CPPUNIT_TEST(testGetCount);
+
// XNamed
CPPUNIT_TEST(testGetName);
CPPUNIT_TEST(testSetName);
@@ -74,6 +80,7 @@ private:
ScDataPilotFieldGroupObj::ScDataPilotFieldGroupObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
, XElementAccess(cppu::UnoType<container::XNamed>::get())
+ , XIndexAccess(2)
, XNamed("Group1")
{
}
More information about the Libreoffice-commits
mailing list