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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Jan 17 00:41:28 UTC 2019


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

New commits:
commit b69b90bbeac795b15418b884ac4b26e35ceb08db
Author:     Jens Carl <j.carl43 at gmx.de>
AuthorDate: Wed Jan 16 21:08:22 2019 +0000
Commit:     Jens Carl <j.carl43 at gmx.de>
CommitDate: Thu Jan 17 01:41:00 2019 +0100

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

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableConditionalFormat.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableConditionalFormat.csv
index acfc8dac9c8e..7f6fbb59c56e 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableConditionalFormat.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableConditionalFormat.csv
@@ -1,6 +1,3 @@
-"ScTableConditionalFormat";"com::sun::star::container::XNameAccess";"getByName()"
-"ScTableConditionalFormat";"com::sun::star::container::XNameAccess";"getElementNames()"
-"ScTableConditionalFormat";"com::sun::star::container::XNameAccess";"hasByName()"
 "ScTableConditionalFormat";"com::sun::star::container::XIndexAccess";"getCount()"
 "ScTableConditionalFormat";"com::sun::star::container::XIndexAccess";"getByIndex()"
 "ScTableConditionalFormat";"com::sun::star::container::XElementAccess";"getElementType()"
diff --git a/sc/qa/extras/sctableconditionalformat.cxx b/sc/qa/extras/sctableconditionalformat.cxx
index d19ceccce756..75ebd3adb399 100644
--- a/sc/qa/extras/sctableconditionalformat.cxx
+++ b/sc/qa/extras/sctableconditionalformat.cxx
@@ -9,6 +9,7 @@
 
 #include <test/calc_unoapi_test.hxx>
 #include <test/container/xenumerationaccess.hxx>
+#include <test/container/xnameaccess.hxx>
 #include <test/sheet/xsheetconditionalentries.hxx>
 
 #include <com/sun/star/beans/PropertyValue.hpp>
@@ -22,12 +23,12 @@
 #include <com/sun/star/sheet/XSpreadsheets.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 #include <com/sun/star/table/CellAddress.hpp>
+#include <com/sun/star/uno/XInterface.hpp>
 
 #include <unonames.hxx>
 
 #include <com/sun/star/uno/Reference.hxx>
 #include <com/sun/star/uno/Sequence.hxx>
-#include <com/sun/star/uno/XInterface.hpp>
 
 using namespace css;
 using namespace css::uno;
@@ -37,6 +38,7 @@ namespace sc_apitest
 {
 class ScTableConditionalFormat : public CalcUnoApiTest,
                                  public apitest::XEnumerationAccess,
+                                 public apitest::XNameAccess,
                                  public apitest::XSheetConditionalEntries
 {
 public:
@@ -52,6 +54,11 @@ public:
     // XEnumerationAccess
     CPPUNIT_TEST(testCreateEnumeration);
 
+    // XNameAccess
+    CPPUNIT_TEST(testGetByName);
+    CPPUNIT_TEST(testGetElementNames);
+    CPPUNIT_TEST(testHasByName);
+
     // XSheetConditionalEntries
     CPPUNIT_TEST(testAddNew);
     CPPUNIT_TEST(testClear);
@@ -65,6 +72,7 @@ private:
 
 ScTableConditionalFormat::ScTableConditionalFormat()
     : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+    , XNameAccess("Entry1")
 {
 }
 


More information about the Libreoffice-commits mailing list