summaryrefslogtreecommitdiff
path: root/sc/qa/extras
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 /sc/qa/extras
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>
Diffstat (limited to 'sc/qa/extras')
-rw-r--r--sc/qa/extras/scannotationshapeobj.cxx10
1 files changed, 9 insertions, 1 deletions
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: