summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2019-08-29 09:43:09 +0300
committerMichael Stahl <michael.stahl@allotropia.de>2022-07-15 14:38:15 +0200
commit0fd8c3d842d202f3d9834572c986882ba03a226c (patch)
tree3d0710584e15eb5ab8512474a8334a50d64196ec
parentmissing includes (diff)
downloadcore-0fd8c3d842d202f3d9834572c986882ba03a226c.tar.gz
core-0fd8c3d842d202f3d9834572c986882ba03a226c.zip
related tdf#81345: make unit test robust - check last page
On KDE Neon 18.04, something was causing page 1 to spill over onto page 2. Checking the last page instead of the second one is fine for testing the problem solved for bug 81345. Confirmed with bibisect53 that same header/page style had been used for the whole document originally. Change-Id: Id85562153d7ce1d570806a611f11d33fa5b83c87 Reviewed-on: https://gerrit.libreoffice.org/78250 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de> (cherry picked from commit 6fa47ff2ee87bde38719bfaeac022efd966fc8a2)
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport4.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx
index 18b8c4824e35..66cf57cd6093 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx
@@ -1210,7 +1210,7 @@ DECLARE_OOXMLEXPORT_TEST(testTdf81345_045Original,"tdf81345.docx")
uno::Reference<text::XTextViewCursorSupplier> xTextViewCursorSupplier(xModel->getCurrentController(), uno::UNO_QUERY);
uno::Reference<text::XPageCursor> xCursor(xTextViewCursorSupplier->getViewCursor(), uno::UNO_QUERY);
- xCursor->jumpToPage(2);
+ xCursor->jumpToLastPage();
OUString pageStyleName = getProperty<OUString>(xCursor, "PageStyleName");
CPPUNIT_ASSERT(pageStyleName != "Standard");