cc9a8c13da
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>
43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
/* -*- 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: */
|