summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2020-09-11 13:05:29 +0300
committerJustin Luth <justin_luth@sil.org>2020-09-12 07:47:00 +0200
commitf6d00c3fdc4a134aa67d4e51e6afc3df786bb67b (patch)
tree1f633591529824b11a3bdee92b0e2f072dacc927 /sw
parent0ec032b6a42bcf3dee11cfd9f4fc702905b7ba94 (diff)
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_luth@sil.org>
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/extras/rtfexport/rtfexport4.cxx2
1 files changed, 2 insertions, 0 deletions
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"));
}