[Libreoffice-commits] core.git: sc/qa
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sun Mar 3 18:47:21 UTC 2019
sc/qa/extras/scannotationobj.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit bbc5347be70d11d187cd537dd73cdab584def719
Author: Jens Carl <j.carl43 at gmx.de>
AuthorDate: Sun Mar 3 04:48:52 2019 +0000
Commit: Jens Carl <j.carl43 at gmx.de>
CommitDate: Sun Mar 3 19:46:58 2019 +0100
Add XServiceInfo tests to ScAnnontationObj
Change-Id: I866b057f768b29f14f7eaa75bc8db3591ddca836
Reviewed-on: https://gerrit.libreoffice.org/68635
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43 at gmx.de>
diff --git a/sc/qa/extras/scannotationobj.cxx b/sc/qa/extras/scannotationobj.cxx
index bc3767273354..c22736f400d8 100644
--- a/sc/qa/extras/scannotationobj.cxx
+++ b/sc/qa/extras/scannotationobj.cxx
@@ -9,6 +9,7 @@
#include <test/calc_unoapi_test.hxx>
#include <test/container/xchild.hxx>
+#include <test/lang/xserviceinfo.hxx>
#include <test/sheet/xsheetannotation.hxx>
#include <test/sheet/xsheetannotationshapesupplier.hxx>
#include <test/text/xsimpletext.hxx>
@@ -30,6 +31,7 @@ namespace sc_apitest
{
class ScAnnontationObj : public CalcUnoApiTest,
public apitest::XChild,
+ public apitest::XServiceInfo,
public apitest::XSheetAnnotation,
public apitest::XSheetAnnotationShapeSupplier,
public apitest::XSimpleText,
@@ -49,6 +51,11 @@ public:
// XChild
CPPUNIT_TEST(testGetSetParent);
+ // XServiceInfo
+ CPPUNIT_TEST(testGetImplementationName);
+ CPPUNIT_TEST(testGetSupportedServiceNames);
+ CPPUNIT_TEST(testSupportsService);
+
// XSheetAnnotation
CPPUNIT_TEST(testGetPosition);
CPPUNIT_TEST(testGetAuthor);
@@ -79,6 +86,7 @@ private:
ScAnnontationObj::ScAnnontationObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
+ , XServiceInfo("ScAnnotationObj", "com.sun.star.sheet.CellAnnotation")
{
}
More information about the Libreoffice-commits
mailing list