diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-06-26 20:39:49 -0700 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-06-27 06:30:28 +0200 |
commit | d3b81a27e2bb7c8a3de8cd5fabe8d3734b5a3d3d (patch) | |
tree | ef68fc2c0f3f423e77d5647ae4f5b26ce997178e /sc | |
parent | d35171456bc230efdaa9426da1398b2db7fa0df8 (diff) |
tdf#45904 Move XElementAccess Java tests to C++
Move XElementAccess Java tests to C++ for ScTabViewObj.
Change-Id: Iee151264033bee61a6a88ec0acb932ae069ede56
Reviewed-on: https://gerrit.libreoffice.org/74774
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/extras/sctabviewobj.cxx | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/sc/qa/extras/sctabviewobj.cxx b/sc/qa/extras/sctabviewobj.cxx index fef454f8899a..b2002655610b 100644 --- a/sc/qa/extras/sctabviewobj.cxx +++ b/sc/qa/extras/sctabviewobj.cxx @@ -8,6 +8,7 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/container/xelementaccess.hxx> #include <test/container/xenumerationaccess.hxx> #include <test/container/xindexaccess.hxx> #include <test/sheet/spreadsheetviewsettings.hxx> @@ -18,14 +19,17 @@ #include <test/sheet/xviewsplitable.hxx> #include <com/sun/star/container/XIndexAccess.hpp> -#include <com/sun/star/lang/XComponent.hpp> #include <com/sun/star/frame/XModel.hpp> -#include <com/sun/star/sheet/XSpreadsheetDocument.hpp> +#include <com/sun/star/lang/XComponent.hpp> #include <com/sun/star/sheet/XSpreadsheet.hpp> - +#include <com/sun/star/sheet/XSpreadsheetDocument.hpp> +#include <com/sun/star/sheet/XViewPane.hpp> #include <com/sun/star/uno/XInterface.hpp> + #include <com/sun/star/uno/Reference.hxx> +#include <cppu/unotype.hxx> + using namespace css; using namespace css::uno; @@ -35,6 +39,7 @@ class ScTabViewObj : public CalcUnoApiTest, public apitest::SpreadsheetViewSettings, public apitest::XActivationBroadcaster, public apitest::XCellRangeReferrer, + public apitest::XElementAccess, public apitest::XEnumerationAccess, public apitest::XIndexAccess, public apitest::XSpreadsheetView, @@ -62,6 +67,10 @@ public: //Disabled till it's clear why it fails on some machines. //CPPUNIT_TEST(testGetReferredCells); + // XElementAccess + CPPUNIT_TEST(testGetElementType); + CPPUNIT_TEST(testHasElements); + // XEnumerationAccess CPPUNIT_TEST(testCreateEnumeration); @@ -86,6 +95,7 @@ private: ScTabViewObj::ScTabViewObj() : CalcUnoApiTest("/sc/qa/extras/testdocuments") + , XElementAccess(cppu::UnoType<sheet::XViewPane>::get()) , XIndexAccess(1) { } |