sw/qa/extras/rtfexport/rtfexport4.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit f6d00c3fdc4a134aa67d4e51e6afc3df786bb67b Author: Justin Luth <justin_l...@sil.org> AuthorDate: Fri Sep 11 13:05:29 2020 +0300 Commit: Justin Luth <justin_l...@sil.org> CommitDate: Sat Sep 12 07:47:00 2020 +0200 sw rtfexport: add explanation comments to unit test Change-Id: I6b2579c6c92f0090fe7bee732ab6c8571272e9b0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102454 Tested-by: Jenkins Reviewed-by: Justin Luth <justin_l...@sil.org> diff --git a/sw/qa/extras/rtfexport/rtfexport4.cxx b/sw/qa/extras/rtfexport/rtfexport4.cxx index dbf8cf016ff9..55eb4a2b8c48 100644 --- a/sw/qa/extras/rtfexport/rtfexport4.cxx +++ b/sw/qa/extras/rtfexport/rtfexport4.cxx @@ -333,12 +333,14 @@ DECLARE_RTFEXPORT_TEST(testTdf129522_removeShadowStyle, "tdf129522_removeShadowS DECLARE_RTFEXPORT_TEST(testTdf136587_noStyleName, "tdf136587_noStyleName.rtf") { + // An exception stopped all style definitions. uno::Reference<container::XNameAccess> paragraphStyles = getStyles("ParagraphStyles"); uno::Reference<beans::XPropertySet> xStyleProps(paragraphStyles->getByName("Style15"), uno::UNO_QUERY_THROW); CPPUNIT_ASSERT_EQUAL(sal_Int16(style::ParagraphAdjust_CENTER), getProperty<sal_Int16>(xStyleProps, "ParaAdjust")); + // The problem was that the default style wasn't imported at all, so the fontsize was only 12. xStyleProps.set(paragraphStyles->getByName("Default Paragraph Style"), uno::UNO_QUERY_THROW); CPPUNIT_ASSERT_EQUAL(32.0f, getProperty<float>(xStyleProps, "CharHeight")); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits