summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2019-10-21 21:39:30 -0700
committerJens Carl <j.carl43@gmx.de>2019-10-23 03:36:53 +0200
commit7fe58f64cd8b58918cae92aed536d266f63b4c71 (patch)
treee4c09ee624964526bb15607b2cd90c7027ada14e
parent7c6226bee72805db7f0e567ca9f06c786a7d0da2 (diff)
tdf#45904 Move XTextRange Java test to C++
Move XTextRange Java test to C++ for ScAnnotationShapeObj. Change-Id: If280b4e621fedd1023457ff626c6db8ef9a9f7ad Reviewed-on: https://gerrit.libreoffice.org/81295 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
-rw-r--r--qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv5
-rw-r--r--sc/qa/extras/scannotationshapeobj.cxx10
2 files changed, 9 insertions, 6 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 fa1477b94f04..16d4d6f432d7 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv
@@ -152,11 +152,6 @@
"ScAnnotationShapeObj";"com::sun::star::drawing::ShadowProperties";"ShadowTransparence"
"ScAnnotationShapeObj";"com::sun::star::drawing::ShadowProperties";"ShadowXDistance"
"ScAnnotationShapeObj";"com::sun::star::drawing::ShadowProperties";"ShadowYDistance"
-"ScAnnotationShapeObj";"com::sun::star::text::XTextRange";"getText()"
-"ScAnnotationShapeObj";"com::sun::star::text::XTextRange";"getStart()"
-"ScAnnotationShapeObj";"com::sun::star::text::XTextRange";"getEnd()"
-"ScAnnotationShapeObj";"com::sun::star::text::XTextRange";"getString()"
-"ScAnnotationShapeObj";"com::sun::star::text::XTextRange";"setString()"
"ScAnnotationShapeObj";"com::sun::star::style::CharacterProperties";"CharFontName"
"ScAnnotationShapeObj";"com::sun::star::style::CharacterProperties";"CharFontStyleName"
"ScAnnotationShapeObj";"com::sun::star::style::CharacterProperties";"CharFontFamily"
diff --git a/sc/qa/extras/scannotationshapeobj.cxx b/sc/qa/extras/scannotationshapeobj.cxx
index 567a7a904d3e..5a7a7258e04a 100644
--- a/sc/qa/extras/scannotationshapeobj.cxx
+++ b/sc/qa/extras/scannotationshapeobj.cxx
@@ -14,6 +14,7 @@
#include <test/drawing/xshapedescriptor.hxx>
#include <test/text/xsimpletext.hxx>
#include <test/text/xtext.hxx>
+#include <test/text/xtextrange.hxx>
#include <com/sun/star/container/XIndexAccess.hpp>
#include <com/sun/star/drawing/XShape.hpp>
@@ -42,7 +43,8 @@ class ScAnnotationShapeObj : public CalcUnoApiTest,
public apitest::XShape,
public apitest::XShapeDescriptor,
public apitest::XSimpleText,
- public apitest::XText
+ public apitest::XText,
+ public apitest::XTextRange
{
public:
ScAnnotationShapeObj();
@@ -76,6 +78,12 @@ public:
// XText
CPPUNIT_TEST(testInsertRemoveTextContent);
+ // XTextRange
+ CPPUNIT_TEST(testGetEnd);
+ CPPUNIT_TEST(testGetSetString);
+ CPPUNIT_TEST(testGetStart);
+ CPPUNIT_TEST(testGetText);
+
CPPUNIT_TEST_SUITE_END();
private: