diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-03-10 01:52:19 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-03-10 07:14:25 +0100 |
commit | 197988d28c970c166a750d4b36e17287f083822f (patch) | |
tree | a267a3f56b24659f57eac2c6b6cd612920f0d0ce | |
parent | ea27ea0fb708a502748a83b1196a3821e568ed9e (diff) |
tdf#45904 Move XNameAccess Java tests to C++
Move XNameAccess Java tests to C++ for ScChartsObj.
modified: sc/qa/extras/scchartsobj.cxx
Change-Id: I0599bebf163b122ce315b843337adee08abf2ae3
Reviewed-on: https://gerrit.libreoffice.org/68990
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
-rw-r--r-- | qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv | 3 | ||||
-rw-r--r-- | sc/qa/extras/scchartsobj.cxx | 10 |
2 files changed, 9 insertions, 4 deletions
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv index 6befc7f3318c..3efd1952c17a 100644 --- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv +++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv @@ -1,5 +1,2 @@ -"ScChartsObj";"com::sun::star::container::XNameAccess";"getByName()" -"ScChartsObj";"com::sun::star::container::XNameAccess";"getElementNames()" -"ScChartsObj";"com::sun::star::container::XNameAccess";"hasByName()" "ScChartsObj";"com::sun::star::table::XTableCharts";"addNewByName()" "ScChartsObj";"com::sun::star::table::XTableCharts";"removeByName()" diff --git a/sc/qa/extras/scchartsobj.cxx b/sc/qa/extras/scchartsobj.cxx index caeff557fe94..b0e25af70eee 100644 --- a/sc/qa/extras/scchartsobj.cxx +++ b/sc/qa/extras/scchartsobj.cxx @@ -11,6 +11,7 @@ #include <test/container/xelementaccess.hxx> #include <test/container/xenumerationaccess.hxx> #include <test/container/xindexaccess.hxx> +#include <test/container/xnameaccess.hxx> #include <cppu/unotype.hxx> #include <com/sun/star/awt/Rectangle.hpp> @@ -38,7 +39,8 @@ namespace sc_apitest class ScChartsObj : public CalcUnoApiTest, public apitest::XEnumerationAccess, public apitest::XElementAccess, - public apitest::XIndexAccess + public apitest::XIndexAccess, + public apitest::XNameAccess { public: ScChartsObj(); @@ -60,6 +62,11 @@ public: CPPUNIT_TEST(testGetByIndex); CPPUNIT_TEST(testGetCount); + // XNameAccess + CPPUNIT_TEST(testGetByName); + CPPUNIT_TEST(testGetElementNames); + CPPUNIT_TEST(testHasByName); + CPPUNIT_TEST_SUITE_END(); private: @@ -70,6 +77,7 @@ ScChartsObj::ScChartsObj() : CalcUnoApiTest("/sc/qa/extras/testdocuments") , XElementAccess(cppu::UnoType<table::XTableChart>::get()) , XIndexAccess(1) + , XNameAccess("ScChartsObj") { } |