summaryrefslogtreecommitdiff
path: root/sc/qa/extras
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2017-08-08 08:53:00 +0000
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-08-18 19:48:26 +0200
commit70027414b3ae0c460b0d398fccde092750af47fd (patch)
treef2b6b55e906fbf7d217c9b22100d32271cec9dfc /sc/qa/extras
parentaee0dfee2cbc313b9baf63cdb24af5a676c5eee2 (diff)
tdf#45904 Move Java _XViewFreezable tests to C++
Change-Id: I75a0363304dbaaeb5988f2ec027d8211f4e01a4f Reviewed-on: https://gerrit.libreoffice.org/40872 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/qa/extras')
-rw-r--r--sc/qa/extras/sctabviewobj.cxx13
1 files changed, 8 insertions, 5 deletions
diff --git a/sc/qa/extras/sctabviewobj.cxx b/sc/qa/extras/sctabviewobj.cxx
index 7b83d08037da..6badea0619b8 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/sheet/xviewfreezable.hxx>
#include <test/sheet/xviewsplitable.hxx>
#include <com/sun/star/lang/XComponent.hpp>
@@ -21,9 +22,9 @@ using namespace css::uno;
namespace sc_apitest {
-#define NUMBER_OF_TESTS 1
+#define NUMBER_OF_TESTS 2
-class ScTabViewObj : public CalcUnoApiTest, public apitest::XViewSplitable
+class ScTabViewObj : public CalcUnoApiTest, public apitest::XViewFreezable, public apitest::XViewSplitable
{
public:
ScTabViewObj();
@@ -33,6 +34,10 @@ public:
virtual void tearDown() override;
CPPUNIT_TEST_SUITE(ScTabViewObj);
+
+ // XViewFreezable
+ CPPUNIT_TEST(testFreeze);
+
// XViewSplitable
CPPUNIT_TEST(testSplit);
@@ -61,9 +66,7 @@ uno::Reference< uno::XInterface > ScTabViewObj::init()
CPPUNIT_ASSERT_MESSAGE("no calc document", xSheetDoc.is());
uno::Reference< frame::XModel > xModel(xSheetDoc, uno::UNO_QUERY_THROW);
- uno::Reference< sheet::XViewSplitable > xViewSplitable(xModel->getCurrentController(), uno::UNO_QUERY_THROW);
-
- return xViewSplitable;
+ return xModel->getCurrentController();
}
void ScTabViewObj::setUp()