diff options
author | Jens Carl <j.carl43@gmx.de> | 2018-04-02 06:14:32 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2018-04-02 18:55:03 +0200 |
commit | 387896a05189c60570e031191c3f5959e7737bcb (patch) | |
tree | e37b96606a68e0e8bc65545cf7b855757c9680b7 /sc | |
parent | 75a271fdc40aab116c1468683e64f843d292dc48 (diff) |
tdf#45904 Move _XArrayFormulaRange Java tests to C++
Change-Id: I87b6e52507428537fcc574842c2da9c36fbd672b
Reviewed-on: https://gerrit.libreoffice.org/52247
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/extras/sccellcursorobj.cxx | 17 | ||||
-rw-r--r-- | sc/qa/extras/sccellrangeobj.cxx | 5 | ||||
-rw-r--r-- | sc/qa/extras/sctablesheetobj.cxx | 7 |
3 files changed, 23 insertions, 6 deletions
diff --git a/sc/qa/extras/sccellcursorobj.cxx b/sc/qa/extras/sccellcursorobj.cxx index b4ea737616c7..4cab6702901e 100644 --- a/sc/qa/extras/sccellcursorobj.cxx +++ b/sc/qa/extras/sccellcursorobj.cxx @@ -9,6 +9,7 @@ #include <test/calc_unoapi_test.hxx> #include <test/sheet/sheetcellrange.hxx> +#include <test/sheet/xarrayformularange.hxx> #include <test/sheet/xcellformatrangessupplier.hxx> #include <test/sheet/xcellrangeaddressable.hxx> #include <test/sheet/xcellseries.hxx> @@ -18,8 +19,8 @@ #include <test/sheet/xsheetfilterableex.hxx> #include <test/sheet/xsheetoperation.hxx> #include <test/sheet/xsubtotalcalculatable.hxx> -#include <test/sheet/xusedareacursor.hxx> #include <test/sheet/xuniquecellformatrangessupplier.hxx> +#include <test/sheet/xusedareacursor.hxx> #include <com/sun/star/sheet/XSpreadsheetDocument.hpp> #include <com/sun/star/sheet/XSpreadsheet.hpp> @@ -31,6 +32,7 @@ using namespace css::uno; namespace sc_apitest { class ScCellCursorObj : public CalcUnoApiTest, public apitest::SheetCellRange, + public apitest::XArrayFormulaRange, public apitest::XCellFormatRangesSupplier, public apitest::XCellRangeAddressable, public apitest::XCellSeries, @@ -40,8 +42,8 @@ class ScCellCursorObj : public CalcUnoApiTest, public apitest::SheetCellRange, public apitest::XSheetFilterableEx, public apitest::XSheetOperation, public apitest::XSubTotalCalculatable, - public apitest::XUsedAreaCursor, - public apitest::XUniqueCellFormatRangesSupplier + public apitest::XUniqueCellFormatRangesSupplier, + public apitest::XUsedAreaCursor { public: ScCellCursorObj(); @@ -56,9 +58,8 @@ public: // SheetCellRange CPPUNIT_TEST(testSheetCellRangeProperties); - // XUsedAreaCursor - CPPUNIT_TEST(testGotoStartOfUsedArea); - CPPUNIT_TEST(testGotoEndOfUsedArea); + // XArrayFormulaRange + CPPUNIT_TEST(testGetSetArrayFormula); // XMultipleOperation CPPUNIT_TEST(testSetTableOperation); @@ -91,6 +92,10 @@ public: CPPUNIT_TEST(testCreateSubTotalDescriptor); CPPUNIT_TEST(testApplyRemoveSubTotals); + // XUsedAreaCursor + CPPUNIT_TEST(testGotoStartOfUsedArea); + CPPUNIT_TEST(testGotoEndOfUsedArea); + // XUniqueCellFormatRangesSupplier CPPUNIT_TEST(testGetUniqueCellFormatRanges); diff --git a/sc/qa/extras/sccellrangeobj.cxx b/sc/qa/extras/sccellrangeobj.cxx index 1fd0b4ada63f..6267eb47faba 100644 --- a/sc/qa/extras/sccellrangeobj.cxx +++ b/sc/qa/extras/sccellrangeobj.cxx @@ -10,6 +10,7 @@ #include <test/calc_unoapi_test.hxx> #include <test/sheet/cellproperties.hxx> #include <test/sheet/sheetcellrange.hxx> +#include <test/sheet/xarrayformularange.hxx> #include <test/sheet/xcellformatrangessupplier.hxx> #include <test/sheet/xcellrangeaddressable.hxx> #include <test/sheet/xcellrangedata.hxx> @@ -49,6 +50,7 @@ namespace sc_apitest { class ScCellRangeObj : public CalcUnoApiTest, public apitest::CellProperties, public apitest::SheetCellRange, + public apitest::XArrayFormulaRange, public apitest::XCellFormatRangesSupplier, public apitest::XCellRangeAddressable, public apitest::XCellRangeData, @@ -83,6 +85,9 @@ public: // SheetCellRange CPPUNIT_TEST(testSheetCellRangeProperties); + // XArrayFormulaRange + CPPUNIT_TEST(testGetSetArrayFormula); + // XCellFormatRangesSupplier CPPUNIT_TEST(testGetCellFormatRanges); diff --git a/sc/qa/extras/sctablesheetobj.cxx b/sc/qa/extras/sctablesheetobj.cxx index bf72b594ba25..3ea088d48249 100644 --- a/sc/qa/extras/sctablesheetobj.cxx +++ b/sc/qa/extras/sctablesheetobj.cxx @@ -11,6 +11,7 @@ #include <test/sheet/scenario.hxx> #include <test/sheet/sheetcellrange.hxx> #include <test/sheet/spreadsheet.hxx> +#include <test/sheet/xarrayformularange.hxx> #include <test/sheet/xcellformatrangessupplier.hxx> #include <test/sheet/xcellrangeaddressable.hxx> #include <test/sheet/xcellseries.hxx> @@ -47,6 +48,7 @@ namespace sc_apitest class ScTableSheetObj : public CalcUnoApiTest, public apitest::Scenario, public apitest::SheetCellRange, public apitest::Spreadsheet, + public apitest::XArrayFormulaRange, public apitest::XCellFormatRangesSupplier, public apitest::XCellRangeAddressable, public apitest::XCellSeries, @@ -93,6 +95,11 @@ public: // Spreadsheet CPPUNIT_TEST(testSpreadsheetProperties); + // XArrayFormulaRange +#if 0 // disable, because it makes no sense to set an ArrayFormula over the whole sheet + CPPUNIT_TEST(testGetSetArrayFormula); +#endif + // XCellFormatRangesSupplier CPPUNIT_TEST(testGetCellFormatRanges); |