sd/qa/unit/uiimpress.cxx | 9 +++++++++ 1 file changed, 9 insertions(+)
New commits: commit 4acc39564e7bf6051b851d533d67d1c31a4a19ea Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Thu Nov 4 18:33:22 2021 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Thu Nov 4 19:36:04 2021 +0100 tdf#114613: sd_uiimpress: Add unittest Change-Id: I8bace97c83f97a4b2aed8ca7fb99e51e06995b8d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124719 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sd/qa/unit/uiimpress.cxx b/sd/qa/unit/uiimpress.cxx index f692bd66a022..3368a45c3b61 100644 --- a/sd/qa/unit/uiimpress.cxx +++ b/sd/qa/unit/uiimpress.cxx @@ -661,6 +661,15 @@ CPPUNIT_TEST_FIXTURE(SdUiImpressTest, testTdf134053) SdrObject* pShape = pActualPage->GetObj(0); CPPUNIT_ASSERT_MESSAGE("No Shape", pShape); + SdDrawDocument* pDocument = pXImpressDocument->GetDoc(); + sd::UndoManager* pUndoManager = pDocument->GetUndoManager(); + + // tdf#114613: Without the fix in place, this test would have failed with + // - Expected: 0 + // - Actual : 8 + CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(0), pUndoManager->GetUndoActionCount()); + CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(0), pUndoManager->GetRedoActionCount()); + XDash dash = pShape->GetMergedItem(XATTR_LINEDASH).GetDashValue(); // Because 0% is not possible as dash length (as of June 2020) 1% is used in the fix.