[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Jan 15 17:33:29 UTC 2019
qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamiliesObj.csv | 2 --
sc/qa/extras/scstylefamiliesobj.cxx | 10 +++++++++-
2 files changed, 9 insertions(+), 3 deletions(-)
New commits:
commit e1e772e40f83a8f1d7c4947c5784e1fe8b640d5b
Author: Jens Carl <j.carl43 at gmx.de>
AuthorDate: Tue Jan 15 07:25:39 2019 +0000
Commit: Jens Carl <j.carl43 at gmx.de>
CommitDate: Tue Jan 15 18:33:07 2019 +0100
tdf#45904 Move XIndexAccess Java tests to C++
Move XIndexAccess Java tests to C++ for ScStyleFamiliesObj.
Change-Id: I19f783597656a1e429ea592115497e11e8a0a6a2
Reviewed-on: https://gerrit.libreoffice.org/66346
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43 at gmx.de>
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamiliesObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamiliesObj.csv
index 85d5bff7b77f..e6d6f86459c6 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamiliesObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamiliesObj.csv
@@ -1,4 +1,2 @@
-"ScStyleFamiliesObj";"com::sun::star::container::XIndexAccess#optional";"getCount()"
-"ScStyleFamiliesObj";"com::sun::star::container::XIndexAccess#optional";"getByIndex()"
"ScStyleFamiliesObj";"com::sun::star::container::XElementAccess";"getElementType()"
"ScStyleFamiliesObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/sc/qa/extras/scstylefamiliesobj.cxx b/sc/qa/extras/scstylefamiliesobj.cxx
index 1a1135d1db7a..6449537711a8 100644
--- a/sc/qa/extras/scstylefamiliesobj.cxx
+++ b/sc/qa/extras/scstylefamiliesobj.cxx
@@ -8,6 +8,7 @@
*/
#include <test/calc_unoapi_test.hxx>
+#include <test/container/xindexaccess.hxx>
#include <test/container/xnameaccess.hxx>
#include <com/sun/star/container/XNameAccess.hpp>
@@ -23,7 +24,9 @@ using namespace css::uno;
namespace sc_apitest
{
-class ScStyleFamiliesObj : public CalcUnoApiTest, public apitest::XNameAccess
+class ScStyleFamiliesObj : public CalcUnoApiTest,
+ public apitest::XIndexAccess,
+ public apitest::XNameAccess
{
public:
ScStyleFamiliesObj();
@@ -34,6 +37,10 @@ public:
CPPUNIT_TEST_SUITE(ScStyleFamiliesObj);
+ // XIndexAccess
+ CPPUNIT_TEST(testGetByIndex);
+ CPPUNIT_TEST(testGetCount);
+
// XNameAccess
CPPUNIT_TEST(testGetByName);
CPPUNIT_TEST(testGetElementNames);
@@ -47,6 +54,7 @@ private:
ScStyleFamiliesObj::ScStyleFamiliesObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
+ , XIndexAccess(2)
, XNameAccess("CellStyles")
{
}
More information about the Libreoffice-commits
mailing list