summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2022-11-10 20:16:06 +0100
committerMiklos Vajna <vmiklos@collabora.com>2022-11-11 12:08:57 +0100
commitc222722619ffcdcff17cfad8b932d5108eb54617 (patch)
tree0cb9f69062abdaec721c640f9e290b5e46ed9593 /sw
parent59226be8dcf1bd374d4c16dbff8a382bbfeb6d1d (diff)
CppunitTest_sw_ooxmlexport10: use more SwParaPortion::dumpAsXml()
See commit feeed3e762cf077fbd9cf48f82e949365108ccc1 (CppunitTest_sw_layoutwriter: avoid some a11y-based layout testing, 2022-04-07) for motivation. Change-Id: I3b33e6db9dca96cdeee3a569f7c5054132c4e02e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142569 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport10.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport10.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport10.cxx
index e5e7394c964c..29d15f6d2b22 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport10.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport10.cxx
@@ -1045,10 +1045,10 @@ DECLARE_OOXMLEXPORT_TEST(testTdf95377, "tdf95377.docx")
//default style has numbering enabled. Styles inherit numbering unless specifically disabled
xmlDocUniquePtr pXmlDoc = parseLayoutDump();
- assertXPath(pXmlDoc, "//body/txt/Special", 3); //first three paragraphs have numbering
- assertXPath(pXmlDoc, "//body/txt[1]/Special", "rText", "a.");
- assertXPath(pXmlDoc, "//body/txt[2]/Special", "rText", "b.");
- assertXPath(pXmlDoc, "//body/txt[3]/Special", "rText", "c.");
+ assertXPath(pXmlDoc, "//body/txt/SwParaPortion/SwLineLayout/child::*[@type='PortionType::Number']", 3); //first three paragraphs have numbering
+ assertXPath(pXmlDoc, "//body/txt[1]/SwParaPortion/SwLineLayout/child::*[@type='PortionType::Number']", "expand", "a.");
+ assertXPath(pXmlDoc, "//body/txt[2]/SwParaPortion/SwLineLayout/child::*[@type='PortionType::Number']", "expand", "b.");
+ assertXPath(pXmlDoc, "//body/txt[3]/SwParaPortion/SwLineLayout/child::*[@type='PortionType::Number']", "expand", "c.");
assertXPath(pXmlDoc, "/root/page/body/txt[4]/Special", 0); //last paragraph style disables numbering
}