summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2019-04-24 21:04:10 +0000
committerJens Carl <j.carl43@gmx.de>2019-04-25 01:21:49 +0200
commit7c88700b74346d58084b48656f1c7e28f891cf09 (patch)
tree99196c23486641cc280819af3e119d729c795ca0 /sc
parent47e094c3b14f19fe719d4de56f1f14606efe4885 (diff)
tdf#45904 Move TableColumn Java tests to C++
Move TableColumn Java tests to C++ for ScTableColumnObj. Change-Id: I3f17fa1f25c2676124b56c384364e36736fac849 Reviewed-on: https://gerrit.libreoffice.org/71261 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/extras/sctablecolumnobj.cxx6
-rw-r--r--sc/qa/unoapi/sc_7.sce1
2 files changed, 6 insertions, 1 deletions
diff --git a/sc/qa/extras/sctablecolumnobj.cxx b/sc/qa/extras/sctablecolumnobj.cxx
index 75736d6d45fc..f64b2c0b1822 100644
--- a/sc/qa/extras/sctablecolumnobj.cxx
+++ b/sc/qa/extras/sctablecolumnobj.cxx
@@ -10,6 +10,7 @@
#include <test/calc_unoapi_test.hxx>
#include <test/beans/xpropertyset.hxx>
#include <test/container/xnamed.hxx>
+#include <test/table/tablecolumn.hxx>
#include <test/table/xcellrange.hxx>
#include <com/sun/star/container/XIndexAccess.hpp>
@@ -28,6 +29,7 @@ using namespace css;
namespace sc_apitest
{
class ScTableColumnObj : public CalcUnoApiTest,
+ public apitest::TableColumn,
public apitest::XCellRange,
public apitest::XNamed,
public apitest::XPropertySet
@@ -41,6 +43,9 @@ public:
CPPUNIT_TEST_SUITE(ScTableColumnObj);
+ // TableColumn
+ CPPUNIT_TEST(testTableColumnProperties);
+
// XCellRange
CPPUNIT_TEST(testGetCellByPosition);
CPPUNIT_TEST(testGetCellRangeByName);
@@ -113,6 +118,7 @@ uno::Reference<uno::XInterface> ScTableColumnObj::init()
uno::Reference<container::XIndexAccess> xIA(xSheets, uno::UNO_QUERY_THROW);
uno::Reference<sheet::XSpreadsheet> xSheet0(xIA->getByIndex(0), uno::UNO_QUERY_THROW);
+ setSpreadsheet(xSheet0);
uno::Reference<table::XColumnRowRange> xCRR(xSheet0, uno::UNO_QUERY_THROW);
uno::Reference<table::XTableColumns> xTC(xCRR->getColumns(), uno::UNO_QUERY_THROW);
diff --git a/sc/qa/unoapi/sc_7.sce b/sc/qa/unoapi/sc_7.sce
index 8fdce40c45c8..e88e9db49f4e 100644
--- a/sc/qa/unoapi/sc_7.sce
+++ b/sc/qa/unoapi/sc_7.sce
@@ -17,7 +17,6 @@
#
# -o sc.ScStyleObj
# # i84656 -o sc.ScTabViewObj
-# -o sc.ScTableColumnObj
# -o sc.ScTableSheetObj
# -o sc.ScTableSheetsObj
# #i89411 -o sc.XMLContentExporter