sw/qa/extras/ooxmlexport/ooxmlexport13.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit ba62400222232b49d034f6b0a51e0679d0729d10
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Tue Aug 2 20:04:05 2022 +0200
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Wed Aug 3 08:22:53 2022 +0200

    CppunitTest_sw_ooxmlexport13: use more SwParaPortion::dumpAsXml()
    
    See commit feeed3e762cf077fbd9cf48f82e949365108ccc1
    (CppunitTest_sw_layoutwriter: avoid some a11y-based layout testing,
    2022-04-07) for motivation.
    
    Change-Id: Ia2c6963e0350718da3f9ac592f07863b55255648
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137704
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>

diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport13.cxx 
b/sw/qa/extras/ooxmlexport/ooxmlexport13.cxx
index b97b6c241093..21d85580ecb9 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport13.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport13.cxx
@@ -426,7 +426,7 @@ DECLARE_OOXMLEXPORT_TEST(testTdf123636_newlinePageBreak3, 
"tdf123636_newlinePage
     CPPUNIT_ASSERT_EQUAL_MESSAGE( "Number of Pages", 2, getPages() );
 
     xmlDocUniquePtr pDump = parseLayoutDump();
-    assertXPath(pDump, "/root/page[1]/body/txt[3]/Text[1]", "Portion", "Last 
line on page 1");
+    assertXPath(pDump, 
"/root/page[1]/body/txt[3]/SwParaPortion/SwLineLayout/SwParaPortion[1]", 
"portion", "Last line on page 1");
 }
 
 DECLARE_OOXMLEXPORT_TEST(testTdf123636_newlinePageBreak4, 
"tdf123636_newlinePageBreak4.docx")
@@ -668,7 +668,7 @@ DECLARE_OOXMLEXPORT_TEST(testTdf124594, "tdf124594.docx")
     // Without the accompanying fix in place, this test would have failed, as 
the portion text was
     // only "Er horte leise Schritte hinter", which means the 1st line of the 
2nd paragraph was
     // split into two by a Special portion, i.e. the top margin of the shape 
was too large.
-    assertXPath(pDump, "/root/page/body/txt[2]/Text[1]", "Portion",
+    assertXPath(pDump, 
"/root/page/body/txt[2]/SwParaPortion/SwLineLayout[1]/SwLinePortion[1]", 
"portion",
                 "Er horte leise Schritte hinter sich. Das bedeutete nichts 
Gutes. Wer wu"); // ... until the bookmark.
 }
 

Reply via email to