diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-04-02 21:14:33 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-04-03 00:39:08 +0200 |
commit | cc9a8c13dad6f3d82a2386554bd6113b486a1752 (patch) | |
tree | 467a41e0bb94d07d00c57604301859bfcfeb158f /test | |
parent | ee268253163c4f9f00fd5182c97d9d488c637dfc (diff) |
tdf#45904 Move TableRow Java tests to C++
Move TableRow Java tests to C++ for ScTableRowObj.
Change-Id: I72cd8006b8ad932bab56681de9aac66fb40542fe
Reviewed-on: https://gerrit.libreoffice.org/70159
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'test')
-rw-r--r-- | test/Library_subsequenttest.mk | 1 | ||||
-rw-r--r-- | test/source/table/tablerow.cxx | 43 |
2 files changed, 44 insertions, 0 deletions
diff --git a/test/Library_subsequenttest.mk b/test/Library_subsequenttest.mk index c636235913bf..796fbcef122c 100644 --- a/test/Library_subsequenttest.mk +++ b/test/Library_subsequenttest.mk @@ -162,6 +162,7 @@ $(eval $(call gb_Library_add_exception_objects,subsequenttest,\ test/source/sheet/xviewpane \ test/source/sheet/xviewsplitable \ test/source/style/xstyleloader \ + test/source/table/tablerow \ test/source/table/xcell \ test/source/table/xcellcursor \ test/source/table/xcolumnrowrange \ diff --git a/test/source/table/tablerow.cxx b/test/source/table/tablerow.cxx new file mode 100644 index 000000000000..f07f6e2f67a7 --- /dev/null +++ b/test/source/table/tablerow.cxx @@ -0,0 +1,43 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#include <test/table/tablerow.hxx> +#include <test/unoapi_property_testers.hxx> +#include <rtl/ustring.h> + +#include <com/sun/star/beans/XPropertySet.hpp> + +#include <cppunit/extensions/HelperMacros.h> + +using namespace css; + +namespace apitest +{ +void TableRow::testTableRowProperties() +{ + uno::Reference<beans::XPropertySet> xPS(init(), uno::UNO_QUERY_THROW); + + OUString aPropName; + + aPropName = "Height"; + testLongProperty(xPS, aPropName); + + aPropName = "OptimalHeight"; + testBooleanProperty(xPS, aPropName); + + aPropName = "IsVisible"; + testBooleanProperty(xPS, aPropName); + + aPropName = "IsStartOfNewPage"; + testBooleanProperty(xPS, aPropName); +} + +} // namespace apitest + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |