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

New commits:
commit 74fce77c1f05de306037ceeeb2efa5e8cb736d3f
Author:     Jens Carl <j.car...@gmx.de>
AuthorDate: Fri Mar 29 22:27:56 2019 +0000
Commit:     Jens Carl <j.car...@gmx.de>
CommitDate: Mon Apr 1 05:58:43 2019 +0200

    Add XServiceInfo tests to ScViewPaneObj
    
    Change-Id: I3764dd54f0ddb86166028a6c9c824e58ff0a88a6
    Reviewed-on: https://gerrit.libreoffice.org/70029
    Tested-by: Jenkins
    Reviewed-by: Jens Carl <j.car...@gmx.de>

diff --git a/sc/qa/extras/scviewpaneobj.cxx b/sc/qa/extras/scviewpaneobj.cxx
index 779b019e2506..a233cc90050b 100644
--- a/sc/qa/extras/scviewpaneobj.cxx
+++ b/sc/qa/extras/scviewpaneobj.cxx
@@ -8,6 +8,7 @@
  */
 
 #include <test/calc_unoapi_test.hxx>
+#include <test/lang/xserviceinfo.hxx>
 #include <test/sheet/xcellrangereferrer.hxx>
 #include <test/sheet/xviewpane.hxx>
 #include <test/view/xcontrolaccess.hxx>
@@ -38,6 +39,7 @@ class ScViewPaneObj : public CalcUnoApiTest,
                       public apitest::XCellRangeReferrer,
                       public apitest::XControlAccess,
                       public apitest::XFormLayerAccess,
+                      public apitest::XServiceInfo,
                       public apitest::XViewPane
 {
 public:
@@ -61,6 +63,11 @@ public:
     CPPUNIT_TEST(testIsFormDesignMode);
     CPPUNIT_TEST(testSetFormDesignMode);
 
+    // XServiceInfo
+    CPPUNIT_TEST(testGetImplementationName);
+    CPPUNIT_TEST(testGetSupportedServiceNames);
+    CPPUNIT_TEST(testSupportsService);
+
     // XViewPane
     CPPUNIT_TEST(testFirstVisibleColumn);
     CPPUNIT_TEST(testFirstVisibleRow);
@@ -74,6 +81,7 @@ private:
 
 ScViewPaneObj::ScViewPaneObj()
     : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+    , XServiceInfo("ScViewPaneObj", "com.sun.star.sheet.SpreadsheetViewPane")
 {
 }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to