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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Mar 17 03:03:54 UTC 2019


 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatsObj.csv |    4 --
 sc/qa/extras/scautoformatsobj.cxx                                |   16 ++++++++++
 2 files changed, 16 insertions(+), 4 deletions(-)

New commits:
commit 1e176d3fc5c82a596f17f1a2faf4c72dea2943f4
Author:     Jens Carl <j.carl43 at gmx.de>
AuthorDate: Sat Mar 16 20:26:22 2019 +0000
Commit:     Jens Carl <j.carl43 at gmx.de>
CommitDate: Sun Mar 17 04:03:42 2019 +0100

    tdf#45904 Move XElementAccess Java tests to C++
    
    Move XElementAccess Java tests to C++ for ScAutoFormatsObj.
    
    Change-Id: Ibd094955a1b811e0c5e06e8e4c80f357e54d8ac2
    Reviewed-on: https://gerrit.libreoffice.org/69349
    Tested-by: Jenkins
    Reviewed-by: Jens Carl <j.carl43 at gmx.de>

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatsObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatsObj.csv
index 1fc06336a4b2..3d634863ec34 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatsObj.csv
@@ -1,3 +1 @@
-"ScAutoFormatsObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScAutoFormatsObj";"com::sun::star::container::XElementAccess";"hasElements()"
 "ScAutoFormatsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/qa/extras/scautoformatsobj.cxx b/sc/qa/extras/scautoformatsobj.cxx
index 8a48db4d5812..20c0c3e62f29 100644
--- a/sc/qa/extras/scautoformatsobj.cxx
+++ b/sc/qa/extras/scautoformatsobj.cxx
@@ -8,12 +8,15 @@
  */
 
 #include <test/calc_unoapi_test.hxx>
+#include <test/container/xelementaccess.hxx>
 #include <test/container/xindexaccess.hxx>
 #include <test/container/xnameaccess.hxx>
 #include <test/container/xnamecontainer.hxx>
 #include <test/container/xnamereplace.hxx>
+#include <cppu/unotype.hxx>
 
 #include <com/sun/star/container/XNameContainer.hpp>
+#include <com/sun/star/container/XNamed.hpp>
 #include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
 #include <com/sun/star/uno/XInterface.hpp>
@@ -26,6 +29,7 @@ using namespace css;
 namespace sc_apitest
 {
 class ScAutoFormatsObj : public CalcUnoApiTest,
+                         public apitest::XElementAccess,
                          public apitest::XIndexAccess,
                          public apitest::XNameAccess,
                          public apitest::XNameContainer,
@@ -40,6 +44,10 @@ public:
 
     CPPUNIT_TEST_SUITE(ScAutoFormatsObj);
 
+    // XElementAccess
+    CPPUNIT_TEST(testGetElementType);
+    CPPUNIT_TEST(testHasElements);
+
     // XIndexAccess
     CPPUNIT_TEST(testGetByIndex);
     CPPUNIT_TEST(testGetCount);
@@ -67,6 +75,7 @@ private:
 
 ScAutoFormatsObj::ScAutoFormatsObj()
     : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+    , XElementAccess(cppu::UnoType<container::XNamed>::get())
     , XIndexAccess(2)
     , XNameAccess("Default")
     , XNameContainer("ScAutoFormatsObj")
commit 7331800888122916ca4973052a03412c8bcf088f
Author:     Jens Carl <j.carl43 at gmx.de>
AuthorDate: Sat Mar 16 19:32:25 2019 +0000
Commit:     Jens Carl <j.carl43 at gmx.de>
CommitDate: Sun Mar 17 04:03:31 2019 +0100

    tdf#45904 Move XIndexAccess Java tests to C++
    
    Move XIndexAccess Java tests to C++ for ScAutoFormatsObj.
    
    Change-Id: Ic3c66d0c1ca1f5a833217fdc27fba5403f63412f
    Reviewed-on: https://gerrit.libreoffice.org/69348
    Tested-by: Jenkins
    Reviewed-by: Jens Carl <j.carl43 at gmx.de>

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatsObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatsObj.csv
index f8e15e5ca39b..1fc06336a4b2 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatsObj.csv
@@ -1,5 +1,3 @@
-"ScAutoFormatsObj";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScAutoFormatsObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
 "ScAutoFormatsObj";"com::sun::star::container::XElementAccess";"getElementType()"
 "ScAutoFormatsObj";"com::sun::star::container::XElementAccess";"hasElements()"
 "ScAutoFormatsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/qa/extras/scautoformatsobj.cxx b/sc/qa/extras/scautoformatsobj.cxx
index 6613b93ead88..8a48db4d5812 100644
--- a/sc/qa/extras/scautoformatsobj.cxx
+++ b/sc/qa/extras/scautoformatsobj.cxx
@@ -8,6 +8,7 @@
  */
 
 #include <test/calc_unoapi_test.hxx>
+#include <test/container/xindexaccess.hxx>
 #include <test/container/xnameaccess.hxx>
 #include <test/container/xnamecontainer.hxx>
 #include <test/container/xnamereplace.hxx>
@@ -25,6 +26,7 @@ using namespace css;
 namespace sc_apitest
 {
 class ScAutoFormatsObj : public CalcUnoApiTest,
+                         public apitest::XIndexAccess,
                          public apitest::XNameAccess,
                          public apitest::XNameContainer,
                          public apitest::XNameReplace
@@ -38,6 +40,10 @@ public:
 
     CPPUNIT_TEST_SUITE(ScAutoFormatsObj);
 
+    // XIndexAccess
+    CPPUNIT_TEST(testGetByIndex);
+    CPPUNIT_TEST(testGetCount);
+
     // XNameAccess
     CPPUNIT_TEST(testGetByName);
     CPPUNIT_TEST(testGetElementNames);
@@ -61,6 +67,7 @@ private:
 
 ScAutoFormatsObj::ScAutoFormatsObj()
     : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+    , XIndexAccess(2)
     , XNameAccess("Default")
     , XNameContainer("ScAutoFormatsObj")
     , XNameReplace("ScAutoFormatsObj")


More information about the Libreoffice-commits mailing list