[Libreoffice-commits] core.git: sw/qa

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Wed Apr 8 19:01:01 UTC 2020


 sw/qa/extras/ooxmlexport/ooxmlexport2.cxx |   11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

New commits:
commit 2226997d38cc8fb838ae2fcbe3a87114acf29b38
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Wed Apr 8 19:11:02 2020 +0200
Commit:     Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Wed Apr 8 21:00:28 2020 +0200

    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 at libreoffice.org>

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")
 {


More information about the Libreoffice-commits mailing list