summaryrefslogtreecommitdiff
path: root/sc/qa/extras
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2019-06-17 05:13:27 +0000
committerJens Carl <j.carl43@gmx.de>2019-06-17 08:03:15 +0200
commitc77a1e1c039c863e6fdb47b92ce315b87fc73d0d (patch)
tree0f4d607fbc45a27ad47870efed2defe9e0732f4d /sc/qa/extras
parentabd059fcd81975e2e4f9188734fc8418299caf6b (diff)
tdf#45904 Move XShapeDescriptor Java test to C++
Move XShapeDescriptor Java test to C++ for ScShapeObj. Change-Id: I2d530ea73c6f25e36665db0bd65f734e509d97a6 Reviewed-on: https://gerrit.libreoffice.org/74139 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc/qa/extras')
-rw-r--r--sc/qa/extras/scshapeobj.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/sc/qa/extras/scshapeobj.cxx b/sc/qa/extras/scshapeobj.cxx
index 2a1be6666bb1..91ab4adc79af 100644
--- a/sc/qa/extras/scshapeobj.cxx
+++ b/sc/qa/extras/scshapeobj.cxx
@@ -8,6 +8,7 @@
*/
#include <test/calc_unoapi_test.hxx>
+#include <test/drawing/xshapedescriptor.hxx>
#include <test/lang/xcomponent.hxx>
#include <test/sheet/shape.hxx>
@@ -29,7 +30,10 @@ using namespace css;
namespace sc_apitest
{
-class ScShapeObj : public CalcUnoApiTest, public apitest::Shape, public apitest::XComponent
+class ScShapeObj : public CalcUnoApiTest,
+ public apitest::Shape,
+ public apitest::XComponent,
+ public apitest::XShapeDescriptor
{
public:
ScShapeObj();
@@ -51,6 +55,9 @@ public:
CPPUNIT_TEST(testDispose);
CPPUNIT_TEST(testRemoveEventListener);
+ // XShapeDescriptor
+ CPPUNIT_TEST(testGetShapeType);
+
CPPUNIT_TEST_SUITE_END();
private:
@@ -59,6 +66,7 @@ private:
ScShapeObj::ScShapeObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
+ , XShapeDescriptor("com.sun.star.drawing.RectangleShape")
{
}