summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatObj.csv2
-rw-r--r--sc/qa/extras/scautoformatobj.cxx9
2 files changed, 8 insertions, 3 deletions
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatObj.csv
index ac08c66f293c..96344c70f53d 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatObj.csv
@@ -1,5 +1,3 @@
-"ScAutoFormatObj";"com::sun::star::container::XNamed";"getName()"
-"ScAutoFormatObj";"com::sun::star::container::XNamed";"setName()"
"ScAutoFormatObj";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()"
"ScAutoFormatObj";"com::sun::star::beans::XPropertySet";"setPropertyValue()"
"ScAutoFormatObj";"com::sun::star::beans::XPropertySet";"getPropertyValue()"
diff --git a/sc/qa/extras/scautoformatobj.cxx b/sc/qa/extras/scautoformatobj.cxx
index 1f64c0b9c295..525160e86ffc 100644
--- a/sc/qa/extras/scautoformatobj.cxx
+++ b/sc/qa/extras/scautoformatobj.cxx
@@ -11,6 +11,7 @@
#include <test/container/xelementaccess.hxx>
#include <test/container/xenumerationaccess.hxx>
#include <test/container/xindexaccess.hxx>
+#include <test/container/xnamed.hxx>
#include <test/sheet/tableautoformat.hxx>
#include <cppu/unotype.hxx>
@@ -31,7 +32,8 @@ class ScAutoFormatObj : public CalcUnoApiTest,
public apitest::TableAutoFormat,
public apitest::XElementAccess,
public apitest::XEnumerationAccess,
- public apitest::XIndexAccess
+ public apitest::XIndexAccess,
+ public apitest::XNamed
{
public:
ScAutoFormatObj();
@@ -56,6 +58,10 @@ public:
CPPUNIT_TEST(testGetByIndex);
CPPUNIT_TEST(testGetCount);
+ // XNamed
+ CPPUNIT_TEST(testGetName);
+ CPPUNIT_TEST(testSetName);
+
CPPUNIT_TEST_SUITE_END();
private:
@@ -66,6 +72,7 @@ ScAutoFormatObj::ScAutoFormatObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
, XElementAccess(cppu::UnoType<beans::XPropertySet>::get())
, XIndexAccess(16)
+ , XNamed("Default")
{
}