sw/qa/extras/ooxmlexport/ooxmlexport10.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 77689ceb8171943bfea272ce3c875b061e76e23b Author: Justin Luth <jl...@mail.com> AuthorDate: Wed Sep 7 19:50:47 2022 -0400 Commit: Justin Luth <jl...@mail.com> CommitDate: Thu Sep 8 04:24:00 2022 +0200 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 <jl...@mail.com> 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")