summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-04-02 08:58:25 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-04-02 15:03:53 +0200
commit8ecdaecfa8f8665b0c8c9e3e909f683a6c198797 (patch)
treeade357471641bb09008f529c64c372f6d692787d
parenttdf#124329 Test setting ResizeWithCell via UNO API (diff)
downloadcore-8ecdaecfa8f8665b0c8c9e3e909f683a6c198797.tar.gz
core-8ecdaecfa8f8665b0c8c9e3e909f683a6c198797.zip
Split large test method in two
Change-Id: If1b915f721a5768b682c63dc9c08b708ba37a705 Reviewed-on: https://gerrit.libreoffice.org/70116 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
-rw-r--r--include/test/sheet/shape.hxx3
-rw-r--r--sc/qa/extras/scshapeobj.cxx3
-rw-r--r--test/source/sheet/shape.cxx8
3 files changed, 11 insertions, 3 deletions
diff --git a/include/test/sheet/shape.hxx b/include/test/sheet/shape.hxx
index 3d10fc31eb4f..ad2b7b7657ce 100644
--- a/include/test/sheet/shape.hxx
+++ b/include/test/sheet/shape.hxx
@@ -23,7 +23,8 @@ public:
virtual css::uno::Reference<css::uno::XInterface> init() = 0;
virtual css::uno::Reference<css::uno::XInterface> getXSheetDocument() = 0;
- void testShapeProperties();
+ void testShapePropertiesAnchor();
+ void testShapePropertiesPosition();
protected:
~Shape() {}
diff --git a/sc/qa/extras/scshapeobj.cxx b/sc/qa/extras/scshapeobj.cxx
index c32ab1d899ed..279b07dead3d 100644
--- a/sc/qa/extras/scshapeobj.cxx
+++ b/sc/qa/extras/scshapeobj.cxx
@@ -42,7 +42,8 @@ public:
CPPUNIT_TEST_SUITE(ScShapeObj);
// Shape
- CPPUNIT_TEST(testShapeProperties);
+ CPPUNIT_TEST(testShapePropertiesAnchor);
+ CPPUNIT_TEST(testShapePropertiesPosition);
CPPUNIT_TEST_SUITE_END();
diff --git a/test/source/sheet/shape.cxx b/test/source/sheet/shape.cxx
index ac50a1a11223..f1422f5b857a 100644
--- a/test/source/sheet/shape.cxx
+++ b/test/source/sheet/shape.cxx
@@ -25,7 +25,7 @@ using namespace com::sun::star::uno;
namespace apitest
{
-void Shape::testShapeProperties()
+void Shape::testShapePropertiesAnchor()
{
uno::Reference<beans::XPropertySet> xShape(init(), UNO_QUERY_THROW);
uno::Any aNewValue;
@@ -72,6 +72,12 @@ void Shape::testShapeProperties()
xShape->getPropertyValue("ResizeWithCell") >>= bIsResizeWithCell;
CPPUNIT_ASSERT_MESSAGE("ResizeWithCell should be unchangeable for sheet anchored shapes",
!bIsResizeWithCell);
+}
+
+void Shape::testShapePropertiesPosition()
+{
+ uno::Reference<beans::XPropertySet> xShape(init(), UNO_QUERY_THROW);
+ uno::Any aNewValue;
sal_Int32 nHoriOrientPositionGet = 0;
sal_Int32 nHoriOrientPositionSet = 0;