diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-03-27 23:14:48 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-03-28 06:27:15 +0100 |
commit | f897e80d063436be07356049f595efe5afb04859 (patch) | |
tree | dd90e4baacffb04dbc217c184fdbe66dfc6ab85e /sc/qa/extras/scdrawpageobj.cxx | |
parent | ed6a71eafa61bade50219d2ff6233a42ab6d1c17 (diff) |
tdf#45904 Move XElementAccess Java tests to C++
Move XElementAccess Java tests to C++ for ScDrawPageObj.
Change-Id: I3a51c77f524311416ac054005c0632e5127efb79
Reviewed-on: https://gerrit.libreoffice.org/69871
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc/qa/extras/scdrawpageobj.cxx')
-rw-r--r-- | sc/qa/extras/scdrawpageobj.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sc/qa/extras/scdrawpageobj.cxx b/sc/qa/extras/scdrawpageobj.cxx index 77beb3629528..9f8e9194598d 100644 --- a/sc/qa/extras/scdrawpageobj.cxx +++ b/sc/qa/extras/scdrawpageobj.cxx @@ -9,7 +9,9 @@ #include <test/calc_unoapi_test.hxx> #include <test/helper/shape.hxx> +#include <test/container/xelementaccess.hxx> #include <test/container/xindexaccess.hxx> +#include <cppu/unotype.hxx> #include <com/sun/star/drawing/XDrawPage.hpp> #include <com/sun/star/drawing/XDrawPages.hpp> @@ -26,7 +28,9 @@ using namespace css; namespace sc_apitest { -class ScDrawPageObj : public CalcUnoApiTest, public apitest::XIndexAccess +class ScDrawPageObj : public CalcUnoApiTest, + public apitest::XElementAccess, + public apitest::XIndexAccess { public: ScDrawPageObj(); @@ -37,6 +41,10 @@ public: CPPUNIT_TEST_SUITE(ScDrawPageObj); + // XElementAccess + CPPUNIT_TEST(testGetElementType); + CPPUNIT_TEST(testHasElements); + // XIndexAccess CPPUNIT_TEST(testGetByIndex); CPPUNIT_TEST(testGetCount); @@ -49,6 +57,7 @@ private: ScDrawPageObj::ScDrawPageObj() : CalcUnoApiTest("/sc/qa/extras/testdocuments") + , XElementAccess(cppu::UnoType<drawing::XShape>::get()) , XIndexAccess(2) { } |