diff options
author | Justin Luth <justin_luth@sil.org> | 2019-08-29 09:43:09 +0300 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2019-08-29 18:47:14 +0200 |
commit | 6fa47ff2ee87bde38719bfaeac022efd966fc8a2 (patch) | |
tree | 7fca487c5729b53b9b3a89daad843fac98771c10 /sw | |
parent | 35132e5cd648fd54ffb186039324f5fb954dd08f (diff) |
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>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport4.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx index ddc71edc6861..a2b2cf41c6ed 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx @@ -1206,7 +1206,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"); |