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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sat Jan 26 00:18:02 UTC 2019


 sc/qa/extras/scspreadsheetsettings.cxx |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

New commits:
commit 3424004cca7cb61043800f0ff0acc9de64768276
Author:     Jens Carl <j.carl43 at gmx.de>
AuthorDate: Fri Jan 25 18:45:11 2019 +0000
Commit:     Jens Carl <j.carl43 at gmx.de>
CommitDate: Sat Jan 26 01:17:35 2019 +0100

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

diff --git a/sc/qa/extras/scspreadsheetsettings.cxx b/sc/qa/extras/scspreadsheetsettings.cxx
index 5835877e2dc0..a06d65cd5060 100644
--- a/sc/qa/extras/scspreadsheetsettings.cxx
+++ b/sc/qa/extras/scspreadsheetsettings.cxx
@@ -9,6 +9,7 @@
 
 #include <test/calc_unoapi_test.hxx>
 #include <test/beans/xpropertyset.hxx>
+#include <test/lang/xserviceinfo.hxx>
 #include <test/sheet/globalsheetsettings.hxx>
 
 #include <com/sun/star/lang/XComponent.hpp>
@@ -26,7 +27,8 @@ namespace sc_apitest
 {
 class ScSpreadsheetSettings : public CalcUnoApiTest,
                               public apitest::GlobalSheetSettings,
-                              public apitest::XPropertySet
+                              public apitest::XPropertySet,
+                              public apitest::XServiceInfo
 {
 public:
     ScSpreadsheetSettings();
@@ -47,6 +49,11 @@ public:
     CPPUNIT_TEST(testPropertyChangeListener);
     CPPUNIT_TEST(testVetoableChangeListener);
 
+    // XServiceInfo
+    CPPUNIT_TEST(testGetImplementationName);
+    CPPUNIT_TEST(testGetSupportedServiceNames);
+    CPPUNIT_TEST(testSupportsService);
+
     CPPUNIT_TEST_SUITE_END();
 
 private:
@@ -56,6 +63,8 @@ private:
 ScSpreadsheetSettings::ScSpreadsheetSettings()
     : CalcUnoApiTest("/sc/qa/extras/testdocuments")
     , XPropertySet({ "LinkUpdateMode", "UsePrinterMetrics", "UserLists" })
+    , XServiceInfo("stardiv.StarCalc.ScSpreadsheetSettings",
+                   "com.sun.star.sheet.GlobalSheetSettings")
 {
 }
 


More information about the Libreoffice-commits mailing list