summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv2
-rw-r--r--sc/qa/extras/scchartsobj.cxx9
2 files changed, 8 insertions, 3 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 149d92e110da..6befc7f3318c 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv
@@ -1,7 +1,5 @@
"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::container::XIndexAccess";"getCount()"
-"ScChartsObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
"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 df40621aa6a2..caeff557fe94 100644
--- a/sc/qa/extras/scchartsobj.cxx
+++ b/sc/qa/extras/scchartsobj.cxx
@@ -10,6 +10,7 @@
#include <test/calc_unoapi_test.hxx>
#include <test/container/xelementaccess.hxx>
#include <test/container/xenumerationaccess.hxx>
+#include <test/container/xindexaccess.hxx>
#include <cppu/unotype.hxx>
#include <com/sun/star/awt/Rectangle.hpp>
@@ -36,7 +37,8 @@ namespace sc_apitest
{
class ScChartsObj : public CalcUnoApiTest,
public apitest::XEnumerationAccess,
- public apitest::XElementAccess
+ public apitest::XElementAccess,
+ public apitest::XIndexAccess
{
public:
ScChartsObj();
@@ -54,6 +56,10 @@ public:
CPPUNIT_TEST(testGetElementType);
CPPUNIT_TEST(testHasElements);
+ // XIndexAccess
+ CPPUNIT_TEST(testGetByIndex);
+ CPPUNIT_TEST(testGetCount);
+
CPPUNIT_TEST_SUITE_END();
private:
@@ -63,6 +69,7 @@ private:
ScChartsObj::ScChartsObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
, XElementAccess(cppu::UnoType<table::XTableChart>::get())
+ , XIndexAccess(1)
{
}