sw/qa/extras/ooxmlexport/ooxmlexport17.cxx |   23 ++++++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)

New commits:
commit 0aed1fd6cf9b6e41208d30c28198f0917c21239f
Author:     Xisco Fauli <[email protected]>
AuthorDate: Thu Nov 20 14:32:16 2025 +0100
Commit:     Xisco Fauli <[email protected]>
CommitDate: Thu Nov 20 22:49:43 2025 +0100

    sw_ooxmlexport17: do not skip DOCX export validation
    
    Change-Id: I30f942dae8c4de3556427f3baa2883d2e651c77d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194274
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <[email protected]>

diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport17.cxx 
b/sw/qa/extras/ooxmlexport/ooxmlexport17.cxx
index a00fe6ed9e6c..0afb04e1ca98 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport17.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport17.cxx
@@ -42,7 +42,7 @@
 class Test : public SwModelTestBase
 {
 public:
-    Test() : SwModelTestBase(u"/sw/qa/extras/ooxmlexport/data/"_ustr, 
/*bSkipValidation*/ true) {}
+    Test() : SwModelTestBase(u"/sw/qa/extras/ooxmlexport/data/"_ustr) {}
 };
 
 DECLARE_OOXMLEXPORT_TEST(testTdf135164_cancelledNumbering, 
"tdf135164_cancelledNumbering.docx")
@@ -216,6 +216,9 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf135906)
 
 DECLARE_OOXMLEXPORT_TEST(testTdf146802, "tdf146802.docx")
 {
+    // FIXME: validation error in OOXML export: Errors: 7
+    skipValidation();
+
     // There is a group shape with text box inside having an embedded VML 
formula,
     // check if something missing.
     CPPUNIT_ASSERT_EQUAL_MESSAGE("Where is the formula?", 2, getShapes());
@@ -432,6 +435,9 @@ CPPUNIT_TEST_FIXTURE(Test, testDateContentControlExport)
 
     xText->insertTextContent(xCursor, xContentControl, /*bAbsorb=*/true);
 
+    // FIXME: validation error in OOXML export: Errors: 2
+    skipValidation();
+
     // When exporting to DOCX:
     save(TestFilter::DOCX);
 
@@ -757,6 +763,9 @@ DECLARE_OOXMLEXPORT_TEST(testTdf142407, "tdf142407.docx")
 
 DECLARE_OOXMLEXPORT_TEST(testWPGBodyPr, "WPGbodyPr.docx")
 {
+    // FIXME: validation error in OOXML export: Errors: 3
+    skipValidation();
+
     // There are a WPG shape and a picture
     CPPUNIT_ASSERT_EQUAL(2, getShapes());
 
@@ -802,6 +811,9 @@ DECLARE_OOXMLEXPORT_TEST(testWPGBodyPr, "WPGbodyPr.docx")
 
 DECLARE_OOXMLEXPORT_TEST(testTdf146851_1, "tdf146851_1.docx")
 {
+    // FIXME: validation error in OOXML export: Errors: 1
+    skipValidation();
+
     uno::Reference<beans::XPropertySet> xPara;
 
     xPara.set(getParagraph(1, u"qwerty"_ustr), uno::UNO_QUERY);
@@ -985,6 +997,10 @@ DECLARE_OOXMLEXPORT_TEST(testTdf144563, "tdf144563.docx")
 CPPUNIT_TEST_FIXTURE(Test, testTdf146955)
 {
     createSwDoc("tdf146955.odt");
+
+    // FIXME: validation error in OOXML export: Errors: 9
+    skipValidation();
+
     saveAndReload(TestFilter::DOCX);
     // import of a (broken?) DOCX export with dozens of frames raised a SAX 
exception,
     // when the code tried to access to a non-existent footnote
@@ -1043,6 +1059,9 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf147978enhancedPathABVW)
 
 DECLARE_OOXMLEXPORT_TEST(testTdf148132, "tdf148132.docx")
 {
+    // FIXME: validation error in OOXML export: Errors: 1
+    skipValidation();
+
     {
         uno::Reference<text::XTextRange> xParagraph = getParagraph(1);
         auto xLevels = getProperty< uno::Reference<container::XIndexAccess> 
>(xParagraph, u"NumberingRules"_ustr);
@@ -1072,6 +1091,8 @@ DECLARE_OOXMLEXPORT_TEST(testTdf148132, "tdf148132.docx")
 
 DECLARE_OOXMLEXPORT_TEST(testTdf154481, "tdf154481.docx")
 {
+    // FIXME: validation error in OOXML export: Errors: 16
+    skipValidation();
     CPPUNIT_ASSERT_EQUAL_MESSAGE("Missing pages!", 7, getPages());
 }
 

Reply via email to