[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Jan 17 23:47:38 UTC 2019
qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinksObj.csv | 2 --
sc/qa/extras/scddelinksobj.cxx | 10 +++++++++-
2 files changed, 9 insertions(+), 3 deletions(-)
New commits:
commit 6e07cec370fe73d3bf1ca7432eab442f3de38bf9
Author: Jens Carl <j.carl43 at gmx.de>
AuthorDate: Thu Jan 17 22:50:00 2019 +0000
Commit: Jens Carl <j.carl43 at gmx.de>
CommitDate: Fri Jan 18 00:47:07 2019 +0100
tdf#45904 Move XIndexAccess Java tests to C++
Move XIndexAccess Java tests to C++ for ScDDELinksObj.
Change-Id: Ic67c2078b0e439d7209d142c7461a2f858e04ad3
Reviewed-on: https://gerrit.libreoffice.org/66557
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43 at gmx.de>
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinksObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinksObj.csv
index 60819c0d0117..9c8e18f4bc68 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinksObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinksObj.csv
@@ -1,5 +1,3 @@
-"ScDDELinksObj";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScDDELinksObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
"ScDDELinksObj";"com::sun::star::container::XElementAccess";"getElementType()"
"ScDDELinksObj";"com::sun::star::container::XElementAccess";"hasElements()"
"ScDDELinksObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/qa/extras/scddelinksobj.cxx b/sc/qa/extras/scddelinksobj.cxx
index d6f9c8bd462c..9b3ae802a07c 100644
--- a/sc/qa/extras/scddelinksobj.cxx
+++ b/sc/qa/extras/scddelinksobj.cxx
@@ -8,6 +8,7 @@
*/
#include <test/calc_unoapi_test.hxx>
+#include <test/container/xindexaccess.hxx>
#include <test/container/xnameaccess.hxx>
#include <rtl/ustring.hxx>
@@ -31,7 +32,9 @@ using namespace com::sun::star;
namespace sc_apitest
{
-class ScDDELinksObj : public CalcUnoApiTest, public apitest::XNameAccess
+class ScDDELinksObj : public CalcUnoApiTest,
+ public apitest::XIndexAccess,
+ public apitest::XNameAccess
{
public:
ScDDELinksObj();
@@ -42,6 +45,10 @@ public:
CPPUNIT_TEST_SUITE(ScDDELinksObj);
+ // XIndexAccess
+ CPPUNIT_TEST(testGetByIndex);
+ CPPUNIT_TEST(testGetCount);
+
// XNameAccess
CPPUNIT_TEST(testGetByName);
CPPUNIT_TEST(testGetElementNames);
@@ -55,6 +62,7 @@ private:
ScDDELinksObj::ScDDELinksObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
+ , XIndexAccess(1)
, XNameAccess("soffice|"
+ m_directories.getURLFromSrc("/sc/qa/unoapi/testdocuments/ScDDELinksObj.ods")
+ "!Sheet1.A1")
More information about the Libreoffice-commits
mailing list