[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sat Jan 12 17:02:54 UTC 2019
qadevOOo/objdsc/sc/com.sun.star.comp.office.ScFunctionListObj.csv | 3 --
sc/qa/extras/scfunctionlistobj.cxx | 15 ++++++++--
2 files changed, 12 insertions(+), 6 deletions(-)
New commits:
commit 0c31cc212fce6b8c28ddc1648fed245dc840a08a
Author: Jens Carl <j.carl43 at gmx.de>
AuthorDate: Sat Jan 12 04:59:38 2019 +0000
Commit: Jens Carl <j.carl43 at gmx.de>
CommitDate: Sat Jan 12 18:02:33 2019 +0100
tdf#45904 Move XNameAccess Java tests to C++
Move XNameAccess Java tests to C++ for ScFunctionListObj.
Change-Id: I857a2880dc7d0099404bf36ca06877976dd6c9e8
Reviewed-on: https://gerrit.libreoffice.org/66205
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43 at gmx.de>
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScFunctionListObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScFunctionListObj.csv
index 6eacd178c0e2..8ebb090e57db 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScFunctionListObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScFunctionListObj.csv
@@ -1,6 +1,3 @@
-"ScFunctionListObj";"com::sun::star::container::XNameAccess";"getByName()"
-"ScFunctionListObj";"com::sun::star::container::XNameAccess";"getElementNames()"
-"ScFunctionListObj";"com::sun::star::container::XNameAccess";"hasByName()"
"ScFunctionListObj";"com::sun::star::container::XIndexAccess";"getCount()"
"ScFunctionListObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
"ScFunctionListObj";"com::sun::star::container::XElementAccess";"getElementType()"
diff --git a/sc/qa/extras/scfunctionlistobj.cxx b/sc/qa/extras/scfunctionlistobj.cxx
index ae68e5404b58..8616ec5e686c 100644
--- a/sc/qa/extras/scfunctionlistobj.cxx
+++ b/sc/qa/extras/scfunctionlistobj.cxx
@@ -9,14 +9,16 @@
#include <test/calc_unoapi_test.hxx>
#include <test/container/xenumerationaccess.hxx>
+#include <test/container/xnameaccess.hxx>
#include <test/sheet/xfunctiondescriptions.hxx>
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
-#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/uno/XInterface.hpp>
+#include <com/sun/star/uno/Reference.hxx>
+
using namespace css;
using namespace css::uno;
using namespace com::sun::star;
@@ -25,7 +27,8 @@ namespace sc_apitest
{
class ScFunctionListObj : public CalcUnoApiTest,
public apitest::XEnumerationAccess,
- public apitest::XFunctionDescriptions
+ public apitest::XFunctionDescriptions,
+ public apitest::XNameAccess
{
public:
ScFunctionListObj();
@@ -42,6 +45,11 @@ public:
// XFunctionDescriptions
CPPUNIT_TEST(testGetById);
+ // XNameAccess
+ CPPUNIT_TEST(testGetByName);
+ CPPUNIT_TEST(testGetElementNames);
+ CPPUNIT_TEST(testHasByName);
+
CPPUNIT_TEST_SUITE_END();
private:
@@ -50,6 +58,7 @@ private:
ScFunctionListObj::ScFunctionListObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
+ , XNameAccess("IF")
{
}
@@ -75,7 +84,7 @@ void ScFunctionListObj::tearDown()
CPPUNIT_TEST_SUITE_REGISTRATION(ScFunctionListObj);
-} // end namespace
+} // namespace sc_apitest
CPPUNIT_PLUGIN_IMPLEMENT();
More information about the Libreoffice-commits
mailing list