qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPageObj.csv |    3 ---
 sc/qa/extras/scdrawpageobj.cxx                                |   10 +++++++++-
 2 files changed, 9 insertions(+), 4 deletions(-)

New commits:
commit eb0653ee80ad7249fde9ff752b56316fb98c4592
Author:     Jens Carl <j.car...@gmx.de>
AuthorDate: Wed Mar 27 23:25:38 2019 +0000
Commit:     Jens Carl <j.car...@gmx.de>
CommitDate: Thu Mar 28 06:27:41 2019 +0100

    tdf#45904 Move XServiceInfo Java tests to C++
    
    Move XServiceInfo Java tests to C++ for ScDrawPageObj.
    
    Change-Id: Icc2c97296f549763068475be18c00a23b7cd73dc
    Reviewed-on: https://gerrit.libreoffice.org/69872
    Tested-by: Jenkins
    Reviewed-by: Jens Carl <j.car...@gmx.de>

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPageObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPageObj.csv
index 7273ff229a1d..c742ce529e4f 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPageObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPageObj.csv
@@ -1,6 +1,3 @@
-"ScDrawPageObj";"com::sun::star::lang::XServiceInfo";"getImplementationName()"
-"ScDrawPageObj";"com::sun::star::lang::XServiceInfo";"supportsService()"
-"ScDrawPageObj";"com::sun::star::lang::XServiceInfo";"getSupportedServiceNames()"
 "ScDrawPageObj";"com::sun::star::drawing::XShapes";"add()"
 "ScDrawPageObj";"com::sun::star::drawing::XShapes";"remove()"
 "ScDrawPageObj";"com::sun::star::drawing::XShapeGrouper";"group()"
diff --git a/sc/qa/extras/scdrawpageobj.cxx b/sc/qa/extras/scdrawpageobj.cxx
index 9f8e9194598d..de8d8baa4e9c 100644
--- a/sc/qa/extras/scdrawpageobj.cxx
+++ b/sc/qa/extras/scdrawpageobj.cxx
@@ -11,6 +11,7 @@
 #include <test/helper/shape.hxx>
 #include <test/container/xelementaccess.hxx>
 #include <test/container/xindexaccess.hxx>
+#include <test/lang/xserviceinfo.hxx>
 #include <cppu/unotype.hxx>
 
 #include <com/sun/star/drawing/XDrawPage.hpp>
@@ -30,7 +31,8 @@ namespace sc_apitest
 {
 class ScDrawPageObj : public CalcUnoApiTest,
                       public apitest::XElementAccess,
-                      public apitest::XIndexAccess
+                      public apitest::XIndexAccess,
+                      public apitest::XServiceInfo
 {
 public:
     ScDrawPageObj();
@@ -49,6 +51,11 @@ public:
     CPPUNIT_TEST(testGetByIndex);
     CPPUNIT_TEST(testGetCount);
 
+    // XServiceInfo
+    CPPUNIT_TEST(testGetImplementationName);
+    CPPUNIT_TEST(testGetSupportedServiceNames);
+    CPPUNIT_TEST(testSupportsService);
+
     CPPUNIT_TEST_SUITE_END();
 
 private:
@@ -59,6 +66,7 @@ ScDrawPageObj::ScDrawPageObj()
     : CalcUnoApiTest("/sc/qa/extras/testdocuments")
     , XElementAccess(cppu::UnoType<drawing::XShape>::get())
     , XIndexAccess(2)
+    , XServiceInfo("ScPageObj", "com.sun.star.sheet.SpreadsheetDrawPage")
 {
 }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to