summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-04-30 16:17:05 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-04-30 16:18:21 -0400
commit8ac758d5490c53df5e8ec539c37af062bedc72fa (patch)
treee575f44d326f157d4ab93d44be9cd8cd2c514741
parent8bffba8222f1edecd4664ea0ef5e686a369ca72f (diff)
Test for XPropertySet. This is still work-in-progress.
Change-Id: Icf8ddddb9a45435968bc43d8bc7a033ce5cfd702
-rw-r--r--sc/qa/extras/sceditfieldobj-cell.cxx11
-rw-r--r--sc/qa/extras/sceditfieldobj-header.cxx10
2 files changed, 17 insertions, 4 deletions
diff --git a/sc/qa/extras/sceditfieldobj-cell.cxx b/sc/qa/extras/sceditfieldobj-cell.cxx
index e7ad2ed92881..ab3217ab0f8b 100644
--- a/sc/qa/extras/sceditfieldobj-cell.cxx
+++ b/sc/qa/extras/sceditfieldobj-cell.cxx
@@ -27,6 +27,7 @@
*/
#include <test/unoapi_test.hxx>
+#include <test/beans/xpropertyset.hxx>
#include <test/text/xtextfield.hxx>
#include <test/text/xtextcontent.hxx>
@@ -38,11 +39,11 @@
#include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
#include <com/sun/star/sheet/XSpreadsheet.hpp>
-#define NUMBER_OF_TESTS 3
+#define NUMBER_OF_TESTS 5
namespace sc_apitest {
-class ScEditFieldObj_Cell : public UnoApiTest, apitest::XTextField, apitest::XTextContent
+class ScEditFieldObj_Cell : public UnoApiTest, apitest::XTextField, apitest::XTextContent, apitest::XPropertySet
{
public:
ScEditFieldObj_Cell();
@@ -55,8 +56,14 @@ public:
virtual bool isAttachSupported() { return true; }
CPPUNIT_TEST_SUITE(ScEditFieldObj_Cell);
+
+ // XPropertySet
+ CPPUNIT_TEST(testGetPropertySetInfo);
+ CPPUNIT_TEST(testGetPropertyValue);
+
// XTextField
CPPUNIT_TEST(testGetPresentation);
+
// XTextContent
CPPUNIT_TEST(testGetAnchor);
CPPUNIT_TEST(testAttach);
diff --git a/sc/qa/extras/sceditfieldobj-header.cxx b/sc/qa/extras/sceditfieldobj-header.cxx
index 44bdeb59f785..e11dfdeed215 100644
--- a/sc/qa/extras/sceditfieldobj-header.cxx
+++ b/sc/qa/extras/sceditfieldobj-header.cxx
@@ -27,6 +27,7 @@
*/
#include <test/unoapi_test.hxx>
+#include <test/beans/xpropertyset.hxx>
#include <test/text/xtextfield.hxx>
#include <test/text/xtextcontent.hxx>
@@ -41,11 +42,11 @@
#include <com/sun/star/sheet/XSpreadsheet.hpp>
#include <com/sun/star/sheet/XHeaderFooterContent.hpp>
-#define NUMBER_OF_TESTS 2
+#define NUMBER_OF_TESTS 4
namespace sc_apitest {
-class ScEditFieldObj_Header : public UnoApiTest, apitest::XTextContent
+class ScEditFieldObj_Header : public UnoApiTest, apitest::XTextContent, apitest::XPropertySet
{
public:
ScEditFieldObj_Header();
@@ -58,6 +59,11 @@ public:
virtual bool isAttachSupported() { return false; }
CPPUNIT_TEST_SUITE(ScEditFieldObj_Header);
+
+ // XPropertySet
+ CPPUNIT_TEST(testGetPropertySetInfo);
+ CPPUNIT_TEST(testGetPropertyValue);
+
// XTextContent
CPPUNIT_TEST(testGetAnchor);
CPPUNIT_TEST(testAttach);