diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-06-07 00:45:16 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-06-07 06:25:09 +0200 |
commit | 76ce593d2bbb1fc7e242db564f301d6721ba8e45 (patch) | |
tree | dbb4d50eef257255c12479ce463a4b9b62b9b387 /sd | |
parent | a1ae30166e92a0a40dff06740f0bb8e9ee63f70a (diff) |
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@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/qa/unit/import-tests-smartart.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 |