[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Dec 18 10:22:12 UTC 2018
qadevOOo/objdsc/sc/com.sun.star.comp.office.ScScenariosObj.csv | 2 --
sc/qa/extras/scscenariosobj.cxx | 9 ++++++++-
2 files changed, 8 insertions(+), 3 deletions(-)
New commits:
commit 839d651db92655f392107da864195bb86f67f704
Author: Jens Carl <j.carl43 at gmx.de>
AuthorDate: Tue Dec 18 07:05:24 2018 +0000
Commit: Jens Carl <j.carl43 at gmx.de>
CommitDate: Tue Dec 18 11:21:49 2018 +0100
tdf#45904 Move XIndexAccess Java tests to C++
Move XIndexAccess Java tests to C++ for ScScenariosObj.
Change-Id: Idfe41c83adcec7a9cb6b29da9aafcb8c7c25c711
Reviewed-on: https://gerrit.libreoffice.org/65306
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43 at gmx.de>
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScScenariosObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScScenariosObj.csv
index 076436a5c91d..8ef1b812bd2b 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScScenariosObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScScenariosObj.csv
@@ -1,7 +1,5 @@
"ScScenariosObj";"com::sun::star::container::XNameAccess";"getByName()"
"ScScenariosObj";"com::sun::star::container::XNameAccess";"getElementNames()"
"ScScenariosObj";"com::sun::star::container::XNameAccess";"hasByName()"
-"ScScenariosObj";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScScenariosObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
"ScScenariosObj";"com::sun::star::container::XElementAccess";"getElementType()"
"ScScenariosObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/sc/qa/extras/scscenariosobj.cxx b/sc/qa/extras/scscenariosobj.cxx
index baa263998ecc..415ffec08d6d 100644
--- a/sc/qa/extras/scscenariosobj.cxx
+++ b/sc/qa/extras/scscenariosobj.cxx
@@ -9,6 +9,7 @@
#include <test/calc_unoapi_test.hxx>
#include <test/container/xenumerationaccess.hxx>
+#include <test/container/xindexaccess.hxx>
#include <test/sheet/xscenarios.hxx>
#include <com/sun/star/container/XIndexAccess.hpp>
@@ -20,12 +21,12 @@
#include <com/sun/star/sheet/XSpreadsheet.hpp>
#include <com/sun/star/table/XCellRange.hpp>
#include <com/sun/star/table/CellRangeAddress.hpp>
+#include <com/sun/star/uno/XInterface.hpp>
#include <unonames.hxx>
#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/uno/Sequence.hxx>
-#include <com/sun/star/uno/XInterface.hpp>
using namespace css;
using namespace css::uno;
@@ -35,6 +36,7 @@ namespace sc_apitest
{
class ScScenariosObj : public CalcUnoApiTest,
public apitest::XEnumerationAccess,
+ public apitest::XIndexAccess,
public apitest::XScenarios
{
public:
@@ -49,6 +51,10 @@ public:
// XEnumerationAccess
CPPUNIT_TEST(testCreateEnumeration);
+ // XIndexAccess
+ CPPUNIT_TEST(testGetByIndex);
+ CPPUNIT_TEST(testGetCount);
+
// XScenarios
CPPUNIT_TEST(testAddNewByName);
CPPUNIT_TEST(testRemoveByName);
@@ -61,6 +67,7 @@ private:
ScScenariosObj::ScScenariosObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
+ , XIndexAccess(1)
{
}
More information about the Libreoffice-commits
mailing list