summaryrefslogtreecommitdiff
path: root/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-04-08 13:33:26 +0200
committerXisco FaulĂ­ <xiscofauli@libreoffice.org>2020-04-08 15:09:51 +0200
commit2e84b06460e4f4f1d25b1973fcc0e0493c6d9815 (patch)
tree0ec9b9adb28c464feea4429d016309dee4294a39 /sw/qa/extras/ooxmlexport/ooxmlexport3.cxx
parent6b2e925aa0dd389a613e182545de6550057374d4 (diff)
CppunitTest: remove duplicated code
Change-Id: I7ae42a3b853aa3e4cd13566335b528a486e031d0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91909 Tested-by: Jenkins Reviewed-by: Xisco FaulĂ­ <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/extras/ooxmlexport/ooxmlexport3.cxx')
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport3.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx
index 99aa70e27cd5..fbd0552b479d 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx
@@ -959,11 +959,7 @@ DECLARE_OOXMLEXPORT_TEST(testExtraSectionBreak, "1_page.docx")
// There was a problem for some documents during export.Invalid sectPr getting added
// because of faulty calculation of PageDesc value
// This was the reason for increasing number of pages after RT
- uno::Reference<frame::XModel> xModel(mxComponent, uno::UNO_QUERY);
- uno::Reference<text::XTextViewCursorSupplier> xTextViewCursorSupplier(xModel->getCurrentController(), uno::UNO_QUERY);
- uno::Reference<text::XPageCursor> xCursor(xTextViewCursorSupplier->getViewCursor(), uno::UNO_QUERY);
- xCursor->jumpToLastPage();
- CPPUNIT_ASSERT_EQUAL(sal_Int16(1), xCursor->getPage());
+ CPPUNIT_ASSERT_EQUAL(1, getPages());
// tdf126544 Styles were being added before their base/parent/inherited-from style existed, and so were using default settings.
uno::Reference<container::XNameAccess> xParaStyles(getStyles("ParagraphStyles"));