[Libreoffice-commits] core.git: sc/qa
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sat Mar 16 00:57:17 UTC 2019
sc/qa/extras/sctablecolumnsobj.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit afcf3c7fdef0c9b167b1346873bf1936050a4605
Author: Jens Carl <j.carl43 at gmx.de>
AuthorDate: Thu Mar 14 23:00:22 2019 +0000
Commit: Jens Carl <j.carl43 at gmx.de>
CommitDate: Sat Mar 16 01:56:50 2019 +0100
Add XServiceInfo tests to ScTableColumnsObj
Change-Id: I377c2ba0709f1a326923e4ef5f76c3859c9e0c50
Reviewed-on: https://gerrit.libreoffice.org/69287
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43 at gmx.de>
diff --git a/sc/qa/extras/sctablecolumnsobj.cxx b/sc/qa/extras/sctablecolumnsobj.cxx
index b1ce7f482928..7de9d89679f0 100644
--- a/sc/qa/extras/sctablecolumnsobj.cxx
+++ b/sc/qa/extras/sctablecolumnsobj.cxx
@@ -12,6 +12,7 @@
#include <test/container/xenumerationaccess.hxx>
#include <test/container/xindexaccess.hxx>
#include <test/container/xnameaccess.hxx>
+#include <test/lang/xserviceinfo.hxx>
#include <test/table/xtablecolumns.hxx>
#include <cppu/unotype.hxx>
@@ -37,6 +38,7 @@ class ScTableColumnsObj : public CalcUnoApiTest,
public apitest::XEnumerationAccess,
public apitest::XIndexAccess,
public apitest::XNameAccess,
+ public apitest::XServiceInfo,
public apitest::XTableColumns
{
public:
@@ -64,6 +66,11 @@ public:
CPPUNIT_TEST(testGetElementNames);
CPPUNIT_TEST(testHasByName);
+ // XServiceInfo
+ CPPUNIT_TEST(testGetImplementationName);
+ CPPUNIT_TEST(testGetSupportedServiceNames);
+ CPPUNIT_TEST(testSupportsService);
+
// XTableColumns
CPPUNIT_TEST(testInsertByIndex);
CPPUNIT_TEST(testInsertByIndexWithNegativeIndex);
@@ -85,6 +92,7 @@ ScTableColumnsObj::ScTableColumnsObj()
, XElementAccess(cppu::UnoType<table::XCellRange>::get())
, XIndexAccess(1024)
, XNameAccess("ABC")
+ , XServiceInfo("ScTableColumnsObj", "com.sun.star.table.TableColumns")
{
}
More information about the Libreoffice-commits
mailing list