diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-03-05 21:44:25 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-03-06 03:04:51 +0100 |
commit | da474e2985e8672c63e9282576bac6750ae6648c (patch) | |
tree | b9aa77ee1f0c017336027923d3240627845669f7 /sc | |
parent | 04f4cbd0b3e949c28382359f722872d380d98900 (diff) |
tdf#45904 Move XPropertySet Java tests to C++
Move XPropertySet Java tests to C++ for ScDataPilotFieldObj.
Change-Id: I9fa5d153cced1aae8892d2422025dfcdcda73c69
Reviewed-on: https://gerrit.libreoffice.org/68782
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/extras/scdatapilotfieldobj.cxx | 13 | ||||
-rw-r--r-- | sc/qa/unoapi/sc_1.sce | 1 |
2 files changed, 12 insertions, 2 deletions
diff --git a/sc/qa/extras/scdatapilotfieldobj.cxx b/sc/qa/extras/scdatapilotfieldobj.cxx index 46cd9a703b76..cf461616c2ed 100644 --- a/sc/qa/extras/scdatapilotfieldobj.cxx +++ b/sc/qa/extras/scdatapilotfieldobj.cxx @@ -8,6 +8,7 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/beans/xpropertyset.hxx> #include <test/container/xnamed.hxx> #include <test/sheet/datapilotfield.hxx> #include <test/sheet/xdatapilotfield.hxx> @@ -31,7 +32,8 @@ class ScDataPilotFieldObj : public CalcUnoApiTest, public apitest::DataPilotField, public apitest::XDataPilotField, public apitest::XDataPilotFieldGrouping, - public apitest::XNamed + public apitest::XNamed, + public apitest::XPropertySet { public: virtual void setUp() override; @@ -61,6 +63,13 @@ public: CPPUNIT_TEST(testGetName); CPPUNIT_TEST(testSetName); + // XPropertySet + CPPUNIT_TEST(testGetPropertySetInfo); + CPPUNIT_TEST(testGetPropertyValue); + CPPUNIT_TEST(testSetPropertyValue); + CPPUNIT_TEST(testPropertyChangeListener); + CPPUNIT_TEST(testVetoableChangeListener); + CPPUNIT_TEST_SUITE_END(); private: @@ -70,6 +79,8 @@ private: ScDataPilotFieldObj::ScDataPilotFieldObj() : CalcUnoApiTest("/sc/qa/extras/testdocuments") , XNamed("Col1") + , XPropertySet({ "Function", "HasAutoShowInfo", "HasLayoutInfo", "HasSortInfo", "Subtotals", + "Subtotals2" }) { } diff --git a/sc/qa/unoapi/sc_1.sce b/sc/qa/unoapi/sc_1.sce index 9f191382795f..90d19b5913a8 100644 --- a/sc/qa/unoapi/sc_1.sce +++ b/sc/qa/unoapi/sc_1.sce @@ -16,7 +16,6 @@ # the License at http://www.apache.org/licenses/LICENSE-2.0 . # -o sc.ScDataPilotFieldGroupObj --o sc.ScDataPilotFieldObj # i84653 -o sc.ScPageObj # i84554 -o sc.AccessibleEditableTextPara_PreviewNote # i88241 -o sc.AccessibleEditableTextPara_HeaderFooter |