[Libreoffice-commits] core.git: sw/qa
Justin Luth (via logerrit)
logerrit at kemper.freedesktop.org
Thu Aug 29 16:47:59 UTC 2019
sw/qa/extras/ooxmlexport/ooxmlexport4.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 6fa47ff2ee87bde38719bfaeac022efd966fc8a2
Author: Justin Luth <justin_luth at sil.org>
AuthorDate: Thu Aug 29 09:43:09 2019 +0300
Commit: Michael Stahl <Michael.Stahl at cib.de>
CommitDate: Thu Aug 29 18:47:14 2019 +0200
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 at cib.de>
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");
More information about the Libreoffice-commits
mailing list