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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Mar 13 05:40:34 UTC 2019


 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv |    2 --
 sc/qa/extras/sctablecolumnsobj.cxx                                |    8 ++++++++
 2 files changed, 8 insertions(+), 2 deletions(-)

New commits:
commit 847dfdecb5fc5e86364563315a4488616e491c4c
Author:     Jens Carl <j.carl43 at gmx.de>
AuthorDate: Tue Mar 12 23:44:55 2019 +0000
Commit:     Jens Carl <j.carl43 at gmx.de>
CommitDate: Wed Mar 13 06:40:06 2019 +0100

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

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv
index 18217a81947b..babe63642aba 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv
@@ -1,5 +1,3 @@
 "ScTableColumnsObj";"com::sun::star::table::XTableColumns";"insertByIndex()"
 "ScTableColumnsObj";"com::sun::star::table::XTableColumns";"removeByIndex()"
-"ScTableColumnsObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScTableColumnsObj";"com::sun::star::container::XElementAccess";"hasElements()"
 "ScTableColumnsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/qa/extras/sctablecolumnsobj.cxx b/sc/qa/extras/sctablecolumnsobj.cxx
index 5e493bfc4f14..aa361640e45d 100644
--- a/sc/qa/extras/sctablecolumnsobj.cxx
+++ b/sc/qa/extras/sctablecolumnsobj.cxx
@@ -8,8 +8,10 @@
  */
 
 #include <test/calc_unoapi_test.hxx>
+#include <test/container/xelementaccess.hxx>
 #include <test/container/xindexaccess.hxx>
 #include <test/container/xnameaccess.hxx>
+#include <cppu/unotype.hxx>
 
 #include <com/sun/star/container/XIndexAccess.hpp>
 #include <com/sun/star/lang/XComponent.hpp>
@@ -28,6 +30,7 @@ using namespace css;
 namespace sc_apitest
 {
 class ScTableColumnsObj : public CalcUnoApiTest,
+                          public apitest::XElementAccess,
                           public apitest::XIndexAccess,
                           public apitest::XNameAccess
 {
@@ -40,6 +43,10 @@ public:
 
     CPPUNIT_TEST_SUITE(ScTableColumnsObj);
 
+    // XElementAccess
+    CPPUNIT_TEST(testGetElementType);
+    CPPUNIT_TEST(testHasElements);
+
     // XIndexAccess
     CPPUNIT_TEST(testGetByIndex);
     CPPUNIT_TEST(testGetCount);
@@ -57,6 +64,7 @@ private:
 
 ScTableColumnsObj::ScTableColumnsObj()
     : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+    , XElementAccess(cppu::UnoType<table::XCellRange>::get())
     , XIndexAccess(1024)
     , XNameAccess("ABC")
 {


More information about the Libreoffice-commits mailing list