[Libreoffice-commits] core.git: include/test sc/qa test/source

Samuel Mehrbrodt (via logerrit) logerrit at kemper.freedesktop.org
Tue Apr 2 13:04:22 UTC 2019


 include/test/sheet/shape.hxx |    3 ++-
 sc/qa/extras/scshapeobj.cxx  |    3 ++-
 test/source/sheet/shape.cxx  |    8 +++++++-
 3 files changed, 11 insertions(+), 3 deletions(-)

New commits:
commit 8ecdaecfa8f8665b0c8c9e3e909f683a6c198797
Author:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
AuthorDate: Tue Apr 2 08:58:25 2019 +0200
Commit:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
CommitDate: Tue Apr 2 15:03:53 2019 +0200

    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 at cib.de>

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;


More information about the Libreoffice-commits mailing list