sw/qa/extras/uiwriter/uiwriter3.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit c6abf6449e26bb1e1da382ddbe769cd14463467f Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Fri Feb 25 11:15:22 2022 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Fri Feb 25 14:33:48 2022 +0100 tdf#142423: sw_uiwriter3: Add unittest Change-Id: I9b0b53a171689b7b67030010700c6bd7c6dfe4eb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130521 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sw/qa/extras/uiwriter/uiwriter3.cxx b/sw/qa/extras/uiwriter/uiwriter3.cxx index 18a308ba6a23..39e4af558b3c 100644 --- a/sw/qa/extras/uiwriter/uiwriter3.cxx +++ b/sw/qa/extras/uiwriter/uiwriter3.cxx @@ -688,6 +688,11 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest3, testTdf147206) pWrtShell->EndOfSection(false); + // tdf#142423: Without the fix in place, this test would have failed with + // - Expected: 18 + // - Actual : 18.2 + CPPUNIT_ASSERT_EQUAL(18.0f, getProperty<float>(getParagraph(2), "CharHeight")); + // insert table of contents SwTOXMgr mgr(pWrtShell); SwTOXDescription desc{ TOX_CONTENT };