diff options
author | Jens Carl <j.carl43@gmx.de> | 2018-06-12 06:21:24 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2018-06-12 18:38:52 +0200 |
commit | 939fc7dc50a038edb252a8da941ef4e1c018f2b0 (patch) | |
tree | 0c9347ceab0b2a1ded6c06eb23ff72d97efa846d /sc/qa/extras/sccellcursorobj.cxx | |
parent | bd6e17c4ff03909e12d525151b5111934fdd791f (diff) |
tdf#45904 Move _XCellRangeData Java test to C++
Move the remaining tests to C++ and also enable/fix #i84671 by creating
test cases for ScTableSheetObj.
Change-Id: I9412fe7a1947b9afb4343a8f5726eccf9ea371a3
Reviewed-on: https://gerrit.libreoffice.org/55657
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc/qa/extras/sccellcursorobj.cxx')
-rw-r--r-- | sc/qa/extras/sccellcursorobj.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sc/qa/extras/sccellcursorobj.cxx b/sc/qa/extras/sccellcursorobj.cxx index 61e564215787..eb38ea141087 100644 --- a/sc/qa/extras/sccellcursorobj.cxx +++ b/sc/qa/extras/sccellcursorobj.cxx @@ -12,6 +12,7 @@ #include <test/sheet/xarrayformularange.hxx> #include <test/sheet/xcellformatrangessupplier.hxx> #include <test/sheet/xcellrangeaddressable.hxx> +#include <test/sheet/xcellrangedata.hxx> #include <test/sheet/xcellrangeformula.hxx> #include <test/sheet/xcellseries.hxx> #include <test/sheet/xmultipleoperation.hxx> @@ -36,6 +37,7 @@ class ScCellCursorObj : public CalcUnoApiTest, public apitest::SheetCellRange, public apitest::XArrayFormulaRange, public apitest::XCellFormatRangesSupplier, public apitest::XCellRangeAddressable, + public apitest::XCellRangeData, public apitest::XCellRangeFormula, public apitest::XCellSeries, public apitest::XMultipleOperation, @@ -53,6 +55,7 @@ public: virtual void setUp() override; virtual void tearDown() override; virtual uno::Reference< uno::XInterface > init() override; + virtual uno::Reference< uno::XInterface > getXCellRangeData() override; virtual uno::Reference< uno::XInterface > getXSpreadsheet() override; CPPUNIT_TEST_SUITE(ScCellCursorObj); @@ -69,6 +72,10 @@ public: // XCellRangeAddressable CPPUNIT_TEST(testGetRangeAddress); + // XCellRangeData + CPPUNIT_TEST(testGetDataArray); + CPPUNIT_TEST(testSetDataArray); + // XCellRangeFormula CPPUNIT_TEST(testGetSetFormulaArray); @@ -130,6 +137,11 @@ uno::Reference< uno::XInterface > ScCellCursorObj::init() return xCellCursor; } +uno::Reference< uno::XInterface > ScCellCursorObj::getXCellRangeData() +{ + return init(); +} + uno::Reference< uno::XInterface > ScCellCursorObj::getXSpreadsheet() { uno::Reference< sheet::XSpreadsheetDocument > xDoc(mxComponent, UNO_QUERY_THROW); |