summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2018-11-30 21:57:59 +0000
committerJens Carl <j.carl43@gmx.de>2018-12-01 05:49:44 +0100
commit9be1f37fa2954191e06d570e98671868b47d4c76 (patch)
treef8eb2d931b073c0a4546df221fe00bf3c988da14 /sc
parent099772a10470e9125367e78ae77aa25bfd46cdc9 (diff)
tdf#45904 Move XElementAccess Java tests to C++
Move XElementAccess Java tests to C++ for ScCellsObj. Change-Id: If721582a36ef5a82fba20d4ec7e0806d1d0524d9 Reviewed-on: https://gerrit.libreoffice.org/64365 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/extras/sccellsobj.cxx12
-rw-r--r--sc/qa/unoapi/sc_3.sce1
2 files changed, 11 insertions, 2 deletions
diff --git a/sc/qa/extras/sccellsobj.cxx b/sc/qa/extras/sccellsobj.cxx
index ea63c4b444d9..5d41d461ffc5 100644
--- a/sc/qa/extras/sccellsobj.cxx
+++ b/sc/qa/extras/sccellsobj.cxx
@@ -8,6 +8,7 @@
*/
#include <test/calc_unoapi_test.hxx>
+#include <test/container/xelementaccess.hxx>
#include <test/container/xenumerationaccess.hxx>
#include <com/sun/star/container/XIndexAccess.hpp>
@@ -23,12 +24,16 @@
#include <com/sun/star/uno/Reference.hxx>
+#include <cppu/unotype.hxx>
+
using namespace css;
using namespace css::uno;
namespace sc_apitest
{
-class ScCellsObj : public CalcUnoApiTest, public apitest::XEnumerationAccess
+class ScCellsObj : public CalcUnoApiTest,
+ public apitest::XElementAccess,
+ public apitest::XEnumerationAccess
{
public:
ScCellsObj();
@@ -39,6 +44,10 @@ public:
CPPUNIT_TEST_SUITE(ScCellsObj);
+ // XElementAccess
+ CPPUNIT_TEST(testHasElements);
+ CPPUNIT_TEST(testGetElementType);
+
// XEnumerationAccess
CPPUNIT_TEST(testCreateEnumeration);
@@ -50,6 +59,7 @@ private:
ScCellsObj::ScCellsObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
+ , XElementAccess(cppu::UnoType<table::XCell>::get())
{
}
diff --git a/sc/qa/unoapi/sc_3.sce b/sc/qa/unoapi/sc_3.sce
index bc5b7d4d075f..1848392779a8 100644
--- a/sc/qa/unoapi/sc_3.sce
+++ b/sc/qa/unoapi/sc_3.sce
@@ -19,7 +19,6 @@
-o sc.ScCellRangesObj
-o sc.ScCellSearchObj
-o sc.ScCellTextCursor
--o sc.ScCellsObj
-o sc.ScChartObj
-o sc.ScChartsObj
-o sc.ScDDELinkObj