[Libreoffice-commits] core.git: sc/qa

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Jan 17 00:44:35 UTC 2019


 sc/qa/extras/sctableconditionalformat.cxx |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit 62ce65fe042543e7aeaf83bf66f8c2357ff902c6
Author:     Jens Carl <j.carl43 at gmx.de>
AuthorDate: Wed Jan 16 21:27:15 2019 +0000
Commit:     Jens Carl <j.carl43 at gmx.de>
CommitDate: Thu Jan 17 01:44:05 2019 +0100

    Add XServiceInfo tests to ScTableConditionalFormat
    
    Change-Id: Icc57e3d06c13b444bbbd2936112daafbe410c34b
    Reviewed-on: https://gerrit.libreoffice.org/66489
    Tested-by: Jenkins
    Reviewed-by: Jens Carl <j.carl43 at gmx.de>

diff --git a/sc/qa/extras/sctableconditionalformat.cxx b/sc/qa/extras/sctableconditionalformat.cxx
index 094f8831b6ca..cc5b42f5be20 100644
--- a/sc/qa/extras/sctableconditionalformat.cxx
+++ b/sc/qa/extras/sctableconditionalformat.cxx
@@ -12,6 +12,7 @@
 #include <test/container/xenumerationaccess.hxx>
 #include <test/container/xindexaccess.hxx>
 #include <test/container/xnameaccess.hxx>
+#include <test/lang/xserviceinfo.hxx>
 #include <test/sheet/xsheetconditionalentries.hxx>
 
 #include <com/sun/star/beans/PropertyValue.hpp>
@@ -45,6 +46,7 @@ class ScTableConditionalFormat : public CalcUnoApiTest,
                                  public apitest::XEnumerationAccess,
                                  public apitest::XIndexAccess,
                                  public apitest::XNameAccess,
+                                 public apitest::XServiceInfo,
                                  public apitest::XSheetConditionalEntries
 {
 public:
@@ -73,6 +75,11 @@ public:
     CPPUNIT_TEST(testGetElementNames);
     CPPUNIT_TEST(testHasByName);
 
+    // XServiceInfo
+    CPPUNIT_TEST(testGetImplementationName);
+    CPPUNIT_TEST(testGetSupportedServiceNames);
+    CPPUNIT_TEST(testSupportsService);
+
     // XSheetConditionalEntries
     CPPUNIT_TEST(testAddNew);
     CPPUNIT_TEST(testClear);
@@ -89,6 +96,7 @@ ScTableConditionalFormat::ScTableConditionalFormat()
     , XElementAccess(cppu::UnoType<sheet::XSheetConditionalEntry>::get())
     , XIndexAccess(2)
     , XNameAccess("Entry1")
+    , XServiceInfo("ScTableConditionalFormat", "com.sun.star.sheet.TableConditionalFormat")
 {
 }
 


More information about the Libreoffice-commits mailing list