diff options
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) { } |