diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-03-10 06:46:03 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-03-10 20:07:15 +0100 |
commit | a2ae61ee38410579487f8d5729eb8348eece702d (patch) | |
tree | c0c13324375124d6693986a0780da9aa06dce1f8 /sc | |
parent | ef4dd9e5abe4440ebcd9b3f85f345c8667a64dfc (diff) |
tdf#45904 Move XNameAccess Java tests to C++
Move XNameAccess Java tests to C++ for ScDataPilotFieldGroupObj
and fixes i#46730.
Change-Id: I4374774d52c93f381ccf9e71f735b0dab33bc2a4
Reviewed-on: https://gerrit.libreoffice.org/68999
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/extras/scdatapilotfieldgroupobj.cxx | 8 | ||||
-rw-r--r-- | sc/qa/unoapi/sc_1.sce | 1 |
2 files changed, 8 insertions, 1 deletions
diff --git a/sc/qa/extras/scdatapilotfieldgroupobj.cxx b/sc/qa/extras/scdatapilotfieldgroupobj.cxx index 27de6ec202b8..1ab44e92ad5e 100644 --- a/sc/qa/extras/scdatapilotfieldgroupobj.cxx +++ b/sc/qa/extras/scdatapilotfieldgroupobj.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 <test/container/xnamed.hxx> #include <comphelper/types.hxx> #include <rtl/string.hxx> @@ -44,6 +45,7 @@ class ScDataPilotFieldGroupObj : public CalcUnoApiTest, public apitest::XElementAccess, public apitest::XEnumerationAccess, public apitest::XIndexAccess, + public apitest::XNameAccess, public apitest::XNamed { public: @@ -66,6 +68,11 @@ public: CPPUNIT_TEST(testGetByIndex); CPPUNIT_TEST(testGetCount); + // XNameAccess + CPPUNIT_TEST(testGetByName); + CPPUNIT_TEST(testGetElementNames); + CPPUNIT_TEST(testHasByName); + // XNamed CPPUNIT_TEST(testGetName); CPPUNIT_TEST(testSetName); @@ -81,6 +88,7 @@ ScDataPilotFieldGroupObj::ScDataPilotFieldGroupObj() : CalcUnoApiTest("/sc/qa/extras/testdocuments") , XElementAccess(cppu::UnoType<container::XNamed>::get()) , XIndexAccess(2) + , XNameAccess("aName") , XNamed("Group1") { } diff --git a/sc/qa/unoapi/sc_1.sce b/sc/qa/unoapi/sc_1.sce index 90d19b5913a8..d11354465534 100644 --- a/sc/qa/unoapi/sc_1.sce +++ b/sc/qa/unoapi/sc_1.sce @@ -15,7 +15,6 @@ # except in compliance with the License. You may obtain a copy of # the License at http://www.apache.org/licenses/LICENSE-2.0 . # --o sc.ScDataPilotFieldGroupObj # i84653 -o sc.ScPageObj # i84554 -o sc.AccessibleEditableTextPara_PreviewNote # i88241 -o sc.AccessibleEditableTextPara_HeaderFooter |