diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-03-28 00:22:44 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-03-28 06:28:16 +0100 |
commit | ee503c36199d225f4c906fe43c927f911c2097c7 (patch) | |
tree | 8226476dff4725a06c1d4119b60436aa99b750ad /sc | |
parent | eb0653ee80ad7249fde9ff752b56316fb98c4592 (diff) |
tdf#45904 Move XShapeGrouper Java tests to C++
Move XShapeGrouper Java tests to C++ for ScDrawPageObj.
Change-Id: I4a1ed4f14f759fa4214141f0d552e35ccae28035
Reviewed-on: https://gerrit.libreoffice.org/69873
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/extras/scdrawpageobj.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sc/qa/extras/scdrawpageobj.cxx b/sc/qa/extras/scdrawpageobj.cxx index de8d8baa4e9c..7d50a783d9d5 100644 --- a/sc/qa/extras/scdrawpageobj.cxx +++ b/sc/qa/extras/scdrawpageobj.cxx @@ -11,6 +11,7 @@ #include <test/helper/shape.hxx> #include <test/container/xelementaccess.hxx> #include <test/container/xindexaccess.hxx> +#include <test/drawing/xshapegrouper.hxx> #include <test/lang/xserviceinfo.hxx> #include <cppu/unotype.hxx> @@ -32,7 +33,8 @@ namespace sc_apitest class ScDrawPageObj : public CalcUnoApiTest, public apitest::XElementAccess, public apitest::XIndexAccess, - public apitest::XServiceInfo + public apitest::XServiceInfo, + public apitest::XShapeGrouper { public: ScDrawPageObj(); @@ -56,6 +58,10 @@ public: CPPUNIT_TEST(testGetSupportedServiceNames); CPPUNIT_TEST(testSupportsService); + // XShapeGrouper + CPPUNIT_TEST(testGroup); + CPPUNIT_TEST(testUngroup); + CPPUNIT_TEST_SUITE_END(); private: @@ -90,6 +96,8 @@ uno::Reference<uno::XInterface> ScDrawPageObj::init() uno::UNO_QUERY_THROW); xShapes->add(xRectangle1); + // needed for XShapeGrouper tests + setDrawPage(xDrawPage); return xDrawPage; } |