[Libreoffice-commits] core.git: sd/qa

Mike Kaganski (via logerrit) logerrit at kemper.freedesktop.org
Mon Jun 7 04:25:51 UTC 2021


 sd/qa/unit/import-tests-smartart.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 76ce593d2bbb1fc7e242db564f301d6721ba8e45
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Mon Jun 7 00:45:16 2021 +0200
Commit:     Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Mon Jun 7 06:25:09 2021 +0200

    Restrict test a bit to verify that there indeed is scaling
    
    ... just to make sure that changes like a1ae30166e92a0a40dff06740f0bb8e9ee63f70a
    don't break the test.
    
    Change-Id: I4d9f8a6a85fc155c2b67c76152b1aaa7df384a38
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116701
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/sd/qa/unit/import-tests-smartart.cxx b/sd/qa/unit/import-tests-smartart.cxx
index 096a4516294e..17aa03e16cd7 100644
--- a/sd/qa/unit/import-tests-smartart.cxx
+++ b/sd/qa/unit/import-tests-smartart.cxx
@@ -1675,11 +1675,11 @@ void SdImportTestSmartArt::testAutofitSync()
     sal_Int16 nFirstScale = 0;
     CPPUNIT_ASSERT(xFirstInner->getPropertyValue("TextFitToSizeScale") >>= nFirstScale);
     CPPUNIT_ASSERT_GREATER(static_cast<sal_Int16>(0), nFirstScale);
+    CPPUNIT_ASSERT_LESS(static_cast<sal_Int16>(100), nFirstScale);
     uno::Reference<beans::XPropertySet> xSecondInner(getChildShape(getChildShape(xMiddle, 2), 0),
                                                      uno::UNO_QUERY);
     sal_Int16 nSecondScale = 0;
     CPPUNIT_ASSERT(xSecondInner->getPropertyValue("TextFitToSizeScale") >>= nSecondScale);
-    CPPUNIT_ASSERT_GREATER(static_cast<sal_Int16>(0), nSecondScale);
 
     // Without the accompanying fix in place, this test would have failed with:
     // - Expected: 56


More information about the Libreoffice-commits mailing list