summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-04-08 19:11:02 +0200
committerXisco FaulĂ­ <xiscofauli@libreoffice.org>2020-04-08 21:00:28 +0200
commit2226997d38cc8fb838ae2fcbe3a87114acf29b38 (patch)
treecffa298a4c80b468e64db8038c9ab5bc9dbe62b5
parent20ca75db653378dfa6251d737112ccec810292ac (diff)
sw: re-enable unittest
Disabled in 7e66b3214a13e3ab94041874d4495e1dfb2c2dd The document still has 1 page after RT so it should be fine to re-enable it. OpenSuse 12.2 reached EOF in 2014 Change-Id: I2159760f276a420c2c40e6f5d657deac6fdd465d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91935 Tested-by: Jenkins Reviewed-by: Xisco FaulĂ­ <xiscofauli@libreoffice.org>
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport2.cxx11
1 files changed, 1 insertions, 10 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport2.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport2.cxx
index ffedbd31c42f..ef9ae951edeb 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport2.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport2.cxx
@@ -18,13 +18,11 @@
#include <com/sun/star/text/RelOrientation.hpp>
#include <com/sun/star/text/XTextTable.hpp>
#include <com/sun/star/text/XTextFramesSupplier.hpp>
-// #include <com/sun/star/text/XTextViewCursorSupplier.hpp> // keep for test1Table1Page
#include <com/sun/star/style/ParagraphAdjust.hpp>
#include <com/sun/star/style/LineSpacing.hpp>
#include <com/sun/star/style/LineSpacingMode.hpp>
#include <com/sun/star/table/BorderLine2.hpp>
#include <com/sun/star/table/ShadowFormat.hpp>
-//#include <com/sun/star/text/XPageCursor.hpp> // keep for test1Table1Page
//#include <com/sun/star/awt/FontWeight.hpp> // keep for testTableStylerPrSz
#include <com/sun/star/text/WritingMode2.hpp>
#include <com/sun/star/text/WrapTextMode.hpp>
@@ -434,20 +432,13 @@ DECLARE_OOXMLEXPORT_TEST(testFdo51550, "fdo51550.odt")
"Excel.Sheet.12");
}
-/*
- * doesn't work on openSUSE12.2 at least
DECLARE_OOXMLEXPORT_TEST(test1Table1Page, "1-table-1-page.docx")
{
// 2 problem for this document after export:
// - invalid sectPr inserted at the beginning of the page
// - font of empty cell is not preserved, leading to change in rows height
- 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());
}
-*/
DECLARE_OOXMLEXPORT_TEST(testTextFrames, "textframes.odt")
{