[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa
Jens Carl (via logerrit)
logerrit at kemper.freedesktop.org
Thu Feb 27 07:42:22 UTC 2020
qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetsObj.csv | 2 --
sc/qa/extras/sctablesheetsobj.cxx | 7 +++++++
2 files changed, 7 insertions(+), 2 deletions(-)
New commits:
commit c6aceaa407faf9950675411cc24d0c156fc7d972
Author: Jens Carl <j.carl43 at gmx.de>
AuthorDate: Wed Feb 26 22:22:17 2020 -0800
Commit: Jens Carl <j.carl43 at gmx.de>
CommitDate: Thu Feb 27 08:41:47 2020 +0100
tdf#45904 Move XIndexAccess Java tests to C++
Move XIndexAccess Java tests to C++ for ScTableSheetsObj.
Change-Id: Idb130a51dc024cebbbc739d15c767f99558a69b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89609
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43 at gmx.de>
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetsObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetsObj.csv
index e348d3613059..f88b5527bbe4 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetsObj.csv
@@ -1,6 +1,4 @@
"ScTableSheetsObj";"com::sun::star::container::XNameContainer";"insertByName()"
"ScTableSheetsObj";"com::sun::star::container::XNameContainer";"removeByName()"
-"ScTableSheetsObj";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScTableSheetsObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
"ScTableSheetsObj";"com::sun::star::container::XElementAccess";"getElementType()"
"ScTableSheetsObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/sc/qa/extras/sctablesheetsobj.cxx b/sc/qa/extras/sctablesheetsobj.cxx
index 34b1e03cfa90..8b61d3825639 100644
--- a/sc/qa/extras/sctablesheetsobj.cxx
+++ b/sc/qa/extras/sctablesheetsobj.cxx
@@ -9,6 +9,7 @@
#include <test/calc_unoapi_test.hxx>
#include <test/container/xenumerationaccess.hxx>
+#include <test/container/xindexaccess.hxx>
#include <test/container/xnameaccess.hxx>
#include <test/container/xnamecontainer.hxx>
#include <test/container/xnamereplace.hxx>
@@ -23,6 +24,7 @@ using namespace css::uno;
namespace sc_apitest {
class ScTableSheetsObj : public CalcUnoApiTest,
public ::apitest::XEnumerationAccess,
+ public ::apitest::XIndexAccess,
public ::apitest::XNameAccess,
public ::apitest::XNameContainer,
public ::apitest::XNameReplace,
@@ -40,6 +42,10 @@ public:
// XEnumerationAccess
CPPUNIT_TEST(testCreateEnumeration);
+ // XIndexAccess
+ CPPUNIT_TEST(testGetByIndex);
+ CPPUNIT_TEST(testGetCount);
+
// XNameAccess
CPPUNIT_TEST(testGetByName);
CPPUNIT_TEST(testGetElementNames);
@@ -83,6 +89,7 @@ protected:
ScTableSheetsObj::ScTableSheetsObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
+ , ::apitest::XIndexAccess(3)
, ::apitest::XNameAccess("Sheet1")
, ::apitest::XNameContainer("Sheet2")
, ::apitest::XNameReplace("Sheet2")
More information about the Libreoffice-commits
mailing list