summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2019-01-29 01:17:54 +0000
committerJens Carl <j.carl43@gmx.de>2019-01-29 07:08:44 +0100
commita71de08d75e15fd37408901d47a7aa3918f8087a (patch)
treed9cc3c26cdc74f3ea4d5141d114aadc8cf0f8181 /sc
parent76c7a6c39d769cb9bdb9b951d9f95507c0139372 (diff)
tdf#45904 Move XPropertySet Java tests to C++
Move XPropertySet Java tests to C++ for ScFilterDescriptorBase. Change-Id: I86a16f3c53a5aacea0ce88a54ec8b340d13dff4f Reviewed-on: https://gerrit.libreoffice.org/67038 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/extras/scfilterdescriptorbase.cxx10
-rw-r--r--sc/qa/unoapi/sc_4.sce1
2 files changed, 10 insertions, 1 deletions
diff --git a/sc/qa/extras/scfilterdescriptorbase.cxx b/sc/qa/extras/scfilterdescriptorbase.cxx
index be19bfc679f8..3ab3cafad943 100644
--- a/sc/qa/extras/scfilterdescriptorbase.cxx
+++ b/sc/qa/extras/scfilterdescriptorbase.cxx
@@ -8,6 +8,7 @@
*/
#include <test/calc_unoapi_test.hxx>
+#include <test/beans/xpropertyset.hxx>
#include <test/sheet/sheetfilterdescriptor.hxx>
#include <test/sheet/xsheetfilterdescriptor.hxx>
@@ -25,6 +26,7 @@ namespace sc_apitest
{
class ScFilterDescriptorBase : public CalcUnoApiTest,
public apitest::SheetFilterDescriptor,
+ public apitest::XPropertySet,
public apitest::XSheetFilterDescriptor
{
public:
@@ -40,6 +42,13 @@ public:
// SheetFilterDescriptor
CPPUNIT_TEST(testSheetFilterDescriptorProperties);
+ // XPropertySet
+ CPPUNIT_TEST(testGetPropertySetInfo);
+ CPPUNIT_TEST(testGetPropertyValue);
+ CPPUNIT_TEST(testSetPropertyValue);
+ CPPUNIT_TEST(testPropertyChangeListener);
+ CPPUNIT_TEST(testVetoableChangeListener);
+
// XSheetFilterDescriptor
CPPUNIT_TEST(testGetSetFilterFields);
@@ -51,6 +60,7 @@ private:
ScFilterDescriptorBase::ScFilterDescriptorBase()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
+ , XPropertySet({ "Orientation", "OutputPosition" })
{
}
diff --git a/sc/qa/unoapi/sc_4.sce b/sc/qa/unoapi/sc_4.sce
index 1063cae36791..dcff7d102652 100644
--- a/sc/qa/unoapi/sc_4.sce
+++ b/sc/qa/unoapi/sc_4.sce
@@ -20,7 +20,6 @@
-o sc.ScDatabaseRangeObj
-o sc.ScDocumentConfiguration
-o sc.ScDrawPageObj
--o sc.ScFilterDescriptorBase
# ported to cppunit -o sc.ScHeaderFieldObj
-o sc.ScHeaderFieldsObj
# The two HeaderFooter tests seem to fail randomly