summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2019-09-14 17:37:01 -0700
committerJens Carl <j.carl43@gmx.de>2019-09-15 04:49:05 +0200
commitbda1d88f2bfa21202725ab9c567b3cccba3c1f0b (patch)
tree672538e50668e4ac4ebd38250ebede5bd697812c
parent096b91ee15e2686d4eb7118fdb9688ba9dbc44b2 (diff)
tdf#45904 Move XShapeDescriptor Java test to C++
Move XShapeDescriptor Java test to C++ for ScAnnotationShapeObj. Change-Id: I21c51f6d557e877fed6319ed83f7951bdcb3f800 Reviewed-on: https://gerrit.libreoffice.org/78924 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
-rw-r--r--qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv1
-rw-r--r--sc/qa/extras/scannotationshapeobj.cxx6
2 files changed, 6 insertions, 1 deletions
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv
index c65940379cc2..3a76ca37b9f5 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv
@@ -86,7 +86,6 @@
"ScAnnotationShapeObj";"com::sun::star::style::CharacterPropertiesComplex#optional";"CharFontPitchComplex"
"ScAnnotationShapeObj";"com::sun::star::style::CharacterPropertiesComplex#optional";"CharPostureComplex"
"ScAnnotationShapeObj";"com::sun::star::style::CharacterPropertiesComplex#optional";"CharLocaleComplex"
-"ScAnnotationShapeObj";"com::sun::star::drawing::XShapeDescriptor";"getShapeType()"
"ScAnnotationShapeObj";"com::sun::star::drawing::RotationDescriptor";"RotateAngle"
"ScAnnotationShapeObj";"com::sun::star::drawing::RotationDescriptor";"ShearAngle#optional"
"ScAnnotationShapeObj";"com::sun::star::drawing::LineProperties";"LineStyle"
diff --git a/sc/qa/extras/scannotationshapeobj.cxx b/sc/qa/extras/scannotationshapeobj.cxx
index 5cf3fc927464..48f97b1be887 100644
--- a/sc/qa/extras/scannotationshapeobj.cxx
+++ b/sc/qa/extras/scannotationshapeobj.cxx
@@ -10,6 +10,7 @@
#include <test/calc_unoapi_test.hxx>
#include <test/drawing/captionshape.hxx>
#include <test/drawing/xshape.hxx>
+#include <test/drawing/xshapedescriptor.hxx>
#include <test/text/xtext.hxx>
#include <com/sun/star/container/XIndexAccess.hpp>
@@ -36,6 +37,7 @@ namespace sc_apitest
class ScAnnotationShapeObj : public CalcUnoApiTest,
public apitest::CaptionShape,
public apitest::XShape,
+ public apitest::XShapeDescriptor,
public apitest::XText
{
public:
@@ -55,6 +57,9 @@ public:
CPPUNIT_TEST(testGetSetSize);
CPPUNIT_TEST(testGetSetPosition);
+ // XShapeDescriptor
+ CPPUNIT_TEST(testGetShapeType);
+
// XText
CPPUNIT_TEST(testInsertRemoveTextContent);
@@ -69,6 +74,7 @@ uno::Reference<text::XTextContent> ScAnnotationShapeObj::m_xField;
ScAnnotationShapeObj::ScAnnotationShapeObj()
: CalcUnoApiTest("sc/qa/extras/testdocuments")
+ , XShapeDescriptor("com.sun.star.drawing.CaptionShape")
{
}