[Libreoffice-commits] core.git: sc/qa
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Jan 29 08:30:15 UTC 2019
sc/qa/extras/scfilterdescriptorbase.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 6eaf598f5898abd719b264ca3fa05ceb788c4e9d
Author: Jens Carl <j.carl43 at gmx.de>
AuthorDate: Tue Jan 29 06:16:56 2019 +0000
Commit: Jens Carl <j.carl43 at gmx.de>
CommitDate: Tue Jan 29 09:29:51 2019 +0100
Add XServiceInfo tests to ScFilterDescriptorBase
Change-Id: I5063d29baa5e4140d2be35684eed746ae28c2cf5
Reviewed-on: https://gerrit.libreoffice.org/67040
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43 at gmx.de>
diff --git a/sc/qa/extras/scfilterdescriptorbase.cxx b/sc/qa/extras/scfilterdescriptorbase.cxx
index 3ab3cafad943..c989e60b743b 100644
--- a/sc/qa/extras/scfilterdescriptorbase.cxx
+++ b/sc/qa/extras/scfilterdescriptorbase.cxx
@@ -9,6 +9,7 @@
#include <test/calc_unoapi_test.hxx>
#include <test/beans/xpropertyset.hxx>
+#include <test/lang/xserviceinfo.hxx>
#include <test/sheet/sheetfilterdescriptor.hxx>
#include <test/sheet/xsheetfilterdescriptor.hxx>
@@ -27,6 +28,7 @@ namespace sc_apitest
class ScFilterDescriptorBase : public CalcUnoApiTest,
public apitest::SheetFilterDescriptor,
public apitest::XPropertySet,
+ public apitest::XServiceInfo,
public apitest::XSheetFilterDescriptor
{
public:
@@ -49,6 +51,11 @@ public:
CPPUNIT_TEST(testPropertyChangeListener);
CPPUNIT_TEST(testVetoableChangeListener);
+ // XServiceInfo
+ CPPUNIT_TEST(testGetImplementationName);
+ CPPUNIT_TEST(testGetSupportedServiceNames);
+ CPPUNIT_TEST(testSupportsService);
+
// XSheetFilterDescriptor
CPPUNIT_TEST(testGetSetFilterFields);
@@ -61,6 +68,7 @@ private:
ScFilterDescriptorBase::ScFilterDescriptorBase()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
, XPropertySet({ "Orientation", "OutputPosition" })
+ , XServiceInfo("ScFilterDescriptorBase", "com.sun.star.sheet.SheetFilterDescriptor")
{
}
More information about the Libreoffice-commits
mailing list