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

Jens Carl (via logerrit) logerrit at kemper.freedesktop.org
Sun Jun 23 00:31:21 UTC 2019


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

New commits:
commit 8567d3d2567e83d1a8769651295384cfe5d68ce1
Author:     Jens Carl <j.carl43 at gmx.de>
AuthorDate: Sat Jun 22 13:34:05 2019 -0700
Commit:     Jens Carl <j.carl43 at gmx.de>
CommitDate: Sun Jun 23 02:30:34 2019 +0200

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

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTabViewObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTabViewObj.csv
index eee960dcfa3e..ffd0cf5a2114 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTabViewObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTabViewObj.csv
@@ -1,5 +1,3 @@
-"ScTabViewObj";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScTabViewObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
 "ScTabViewObj";"com::sun::star::lang::XComponent";"dispose()"
 "ScTabViewObj";"com::sun::star::lang::XComponent";"addEventListener()"
 "ScTabViewObj";"com::sun::star::lang::XComponent";"removeEventListener()"
diff --git a/sc/qa/extras/sctabviewobj.cxx b/sc/qa/extras/sctabviewobj.cxx
index 14b46abc725e..fef454f8899a 100644
--- a/sc/qa/extras/sctabviewobj.cxx
+++ b/sc/qa/extras/sctabviewobj.cxx
@@ -9,6 +9,7 @@
 
 #include <test/calc_unoapi_test.hxx>
 #include <test/container/xenumerationaccess.hxx>
+#include <test/container/xindexaccess.hxx>
 #include <test/sheet/spreadsheetviewsettings.hxx>
 #include <test/sheet/xactivationbroadcaster.hxx>
 #include <test/sheet/xcellrangereferrer.hxx>
@@ -35,6 +36,7 @@ class ScTabViewObj : public CalcUnoApiTest,
                      public apitest::XActivationBroadcaster,
                      public apitest::XCellRangeReferrer,
                      public apitest::XEnumerationAccess,
+                     public apitest::XIndexAccess,
                      public apitest::XSpreadsheetView,
                      public apitest::XViewFreezable,
                      public apitest::XViewSplitable
@@ -63,6 +65,10 @@ public:
     // XEnumerationAccess
     CPPUNIT_TEST(testCreateEnumeration);
 
+    // XIndexAccess
+    CPPUNIT_TEST(testGetByIndex);
+    CPPUNIT_TEST(testGetCount);
+
     // XSpreadsheetView
     CPPUNIT_TEST(testGetSetActiveSheet);
 
@@ -80,6 +86,7 @@ private:
 
 ScTabViewObj::ScTabViewObj()
     : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+    , XIndexAccess(1)
 {
 }
 


More information about the Libreoffice-commits mailing list