diff options
author | Justin Luth <jluth@mail.com> | 2022-09-07 19:50:47 -0400 |
---|---|---|
committer | Justin Luth <jluth@mail.com> | 2022-09-08 04:24:00 +0200 |
commit | 77689ceb8171943bfea272ce3c875b061e76e23b (patch) | |
tree | 8c0d712a38de8c4cd585dfdaa72fd1efbf5b754f /sw | |
parent | a3bd84703ada964441c17971b5fc1ce1258b3b05 (diff) |
tdf#149292 docx: pre-emptive unit test
This document has floating tables.
However, these tables should not get the page style property,
so make sure that paragraph 1 contains RES_PAGEDESC.
Change-Id: Ia7506907ce192a0ecbf2c57b4fc63b14882e93b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139619
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport10.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport10.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport10.cxx index cf5877ea873d..6eca75bf9087 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport10.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport10.cxx @@ -473,6 +473,9 @@ DECLARE_OOXMLEXPORT_TEST(testFloatingTablesAnchor, "floating-tables-anchor.docx" xRange = xTextContent->getAnchor(); xText = xRange->getText(); CPPUNIT_ASSERT_EQUAL(OUString("Anchor point"), xText->getString()); + + // tdf#149292 pre-emptive test - ensure "First Page" page style + CPPUNIT_ASSERT_EQUAL(OUString("First Page"), getProperty<OUString>(getParagraph(1), "PageDescName")); } DECLARE_OOXMLEXPORT_TEST(testAnnotationFormatting, "annotation-formatting.docx") |