[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sat Mar 9 23:23:52 UTC 2019
qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv | 2 --
sc/qa/extras/scchartsobj.cxx | 12 +++++++++++-
2 files changed, 11 insertions(+), 3 deletions(-)
New commits:
commit ff86acccbf1e52eaab73dd0857eb90593cfe401b
Author: Jens Carl <j.carl43 at gmx.de>
AuthorDate: Sat Mar 9 03:07:28 2019 +0000
Commit: Jens Carl <j.carl43 at gmx.de>
CommitDate: Sun Mar 10 00:23:29 2019 +0100
tdf#45905 Move XElementAccess Java tests to C++
Move XElementAccess Java tests to C++ for ScChartsObj.
modified: sc/qa/extras/scchartsobj.cxx
Change-Id: I8577af7eb9d29d3877e5d515bad121d3fd844716
Reviewed-on: https://gerrit.libreoffice.org/68954
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43 at gmx.de>
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 7376ac76cbf7..149d92e110da 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv
@@ -5,5 +5,3 @@
"ScChartsObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
"ScChartsObj";"com::sun::star::table::XTableCharts";"addNewByName()"
"ScChartsObj";"com::sun::star::table::XTableCharts";"removeByName()"
-"ScChartsObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScChartsObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/sc/qa/extras/scchartsobj.cxx b/sc/qa/extras/scchartsobj.cxx
index ae7426cb965d..df40621aa6a2 100644
--- a/sc/qa/extras/scchartsobj.cxx
+++ b/sc/qa/extras/scchartsobj.cxx
@@ -8,7 +8,9 @@
*/
#include <test/calc_unoapi_test.hxx>
+#include <test/container/xelementaccess.hxx>
#include <test/container/xenumerationaccess.hxx>
+#include <cppu/unotype.hxx>
#include <com/sun/star/awt/Rectangle.hpp>
#include <com/sun/star/container/XIndexAccess.hpp>
@@ -20,6 +22,7 @@
#include <com/sun/star/table/CellRangeAddress.hpp>
#include <com/sun/star/table/XCell.hpp>
#include <com/sun/star/table/XCellRange.hpp>
+#include <com/sun/star/table/XTableChart.hpp>
#include <com/sun/star/table/XTableCharts.hpp>
#include <com/sun/star/table/XTableChartsSupplier.hpp>
#include <com/sun/star/uno/XInterface.hpp>
@@ -31,7 +34,9 @@ using namespace css;
namespace sc_apitest
{
-class ScChartsObj : public CalcUnoApiTest, public apitest::XEnumerationAccess
+class ScChartsObj : public CalcUnoApiTest,
+ public apitest::XEnumerationAccess,
+ public apitest::XElementAccess
{
public:
ScChartsObj();
@@ -45,6 +50,10 @@ public:
// XEnumerationAccess
CPPUNIT_TEST(testCreateEnumeration);
+ // XElementAccess
+ CPPUNIT_TEST(testGetElementType);
+ CPPUNIT_TEST(testHasElements);
+
CPPUNIT_TEST_SUITE_END();
private:
@@ -53,6 +62,7 @@ private:
ScChartsObj::ScChartsObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
+ , XElementAccess(cppu::UnoType<table::XTableChart>::get())
{
}
More information about the Libreoffice-commits
mailing list