summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv3
-rw-r--r--sc/qa/extras/scchartsobj.cxx10
2 files changed, 9 insertions, 4 deletions
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv
index 6befc7f3318c..3efd1952c17a 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv
@@ -1,5 +1,2 @@
-"ScChartsObj";"com::sun::star::container::XNameAccess";"getByName()"
-"ScChartsObj";"com::sun::star::container::XNameAccess";"getElementNames()"
-"ScChartsObj";"com::sun::star::container::XNameAccess";"hasByName()"
"ScChartsObj";"com::sun::star::table::XTableCharts";"addNewByName()"
"ScChartsObj";"com::sun::star::table::XTableCharts";"removeByName()"
diff --git a/sc/qa/extras/scchartsobj.cxx b/sc/qa/extras/scchartsobj.cxx
index caeff557fe94..b0e25af70eee 100644
--- a/sc/qa/extras/scchartsobj.cxx
+++ b/sc/qa/extras/scchartsobj.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 <cppu/unotype.hxx>
#include <com/sun/star/awt/Rectangle.hpp>
@@ -38,7 +39,8 @@ namespace sc_apitest
class ScChartsObj : public CalcUnoApiTest,
public apitest::XEnumerationAccess,
public apitest::XElementAccess,
- public apitest::XIndexAccess
+ public apitest::XIndexAccess,
+ public apitest::XNameAccess
{
public:
ScChartsObj();
@@ -60,6 +62,11 @@ public:
CPPUNIT_TEST(testGetByIndex);
CPPUNIT_TEST(testGetCount);
+ // XNameAccess
+ CPPUNIT_TEST(testGetByName);
+ CPPUNIT_TEST(testGetElementNames);
+ CPPUNIT_TEST(testHasByName);
+
CPPUNIT_TEST_SUITE_END();
private:
@@ -70,6 +77,7 @@ ScChartsObj::ScChartsObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
, XElementAccess(cppu::UnoType<table::XTableChart>::get())
, XIndexAccess(1)
+ , XNameAccess("ScChartsObj")
{
}