[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Jan 23 22:25:04 UTC 2019
qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv | 2 -
sc/qa/extras/scsheetlinksobj.cxx | 11 +++++++++-
2 files changed, 10 insertions(+), 3 deletions(-)
New commits:
commit ce218f3064f58a836be6f0fba75576bfbe031404
Author: Jens Carl <j.carl43 at gmx.de>
AuthorDate: Wed Jan 23 18:58:30 2019 +0000
Commit: Jens Carl <j.carl43 at gmx.de>
CommitDate: Wed Jan 23 23:24:35 2019 +0100
tdf#45904 Move XElementAccess Java tests to C++
Move XElementAccess Java tests to C++ for ScSheetLinksObj.
Change-Id: I8265bb9234c93e8a6e64b55522e7f0543b3af7a9
Reviewed-on: https://gerrit.libreoffice.org/66815
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43 at gmx.de>
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv
index d6a8db0b257b..6a9e3218d0bb 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv
@@ -3,5 +3,3 @@
"ScSheetLinksObj";"com::sun::star::container::XNameAccess";"hasByName()"
"ScSheetLinksObj";"com::sun::star::container::XIndexAccess";"getCount()"
"ScSheetLinksObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
-"ScSheetLinksObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScSheetLinksObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/sc/qa/extras/scsheetlinksobj.cxx b/sc/qa/extras/scsheetlinksobj.cxx
index 2d3b0d714732..2ec4ccf0be6e 100644
--- a/sc/qa/extras/scsheetlinksobj.cxx
+++ b/sc/qa/extras/scsheetlinksobj.cxx
@@ -8,8 +8,10 @@
*/
#include <test/calc_unoapi_test.hxx>
+#include <test/container/xelementaccess.hxx>
#include <test/container/xenumerationaccess.hxx>
+#include <cppu/unotype.hxx>
#include <rtl/string.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
@@ -28,7 +30,9 @@ using namespace css;
namespace sc_apitest
{
-class ScSheetLinksObj : public CalcUnoApiTest, public apitest::XEnumerationAccess
+class ScSheetLinksObj : public CalcUnoApiTest,
+ public apitest::XElementAccess,
+ public apitest::XEnumerationAccess
{
public:
ScSheetLinksObj();
@@ -39,6 +43,10 @@ public:
CPPUNIT_TEST_SUITE(ScSheetLinksObj);
+ // XElementAccess
+ CPPUNIT_TEST(testGetElementType);
+ CPPUNIT_TEST(testHasElements);
+
// XEnumerationAccess
CPPUNIT_TEST(testCreateEnumeration);
@@ -50,6 +58,7 @@ private:
ScSheetLinksObj::ScSheetLinksObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
+ , XElementAccess(cppu::UnoType<beans::XPropertySet>::get())
{
}
More information about the Libreoffice-commits
mailing list