diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2022-11-22 20:01:35 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2022-11-23 08:12:29 +0100 |
commit | 59e25927f4babdc142cdcbd81b5ceb7afe798d02 (patch) | |
tree | 5666a4ab462f9c0577566a033eb97a359703b644 /sw/qa/core/text/text.cxx | |
parent | 1435c5b12646269e2b5b58ec7d51626dce6505db (diff) |
CppunitTest_sw_uiwriter: use more SwParaPortion::dumpAsXml()
Which means XmlPortionDumper can be finally removed.
See commit feeed3e762cf077fbd9cf48f82e949365108ccc1
(CppunitTest_sw_layoutwriter: avoid some a11y-based layout testing,
2022-04-07) for motivation.
Change-Id: I50e6c49a50c5ccbec9e426ad796d85865dcc93e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143128
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/qa/core/text/text.cxx')
-rw-r--r-- | sw/qa/core/text/text.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/qa/core/text/text.cxx b/sw/qa/core/text/text.cxx index 9125cf256a4b..8616f7d331e9 100644 --- a/sw/qa/core/text/text.cxx +++ b/sw/qa/core/text/text.cxx @@ -141,7 +141,9 @@ CPPUNIT_TEST_FIXTURE(SwCoreTextTest, testTabOverMarginSection) createSwDoc("tabovermargin-section.fodt"); xmlDocUniquePtr pXmlDoc = parseLayoutDump(); sal_Int32 nWidth - = getXPath(pXmlDoc, "//Text[@nType='PortionType::TabRight']", "nWidth").toInt32(); + = getXPath(pXmlDoc, "//SwParaPortion/SwLineLayout/child::*[@type='PortionType::TabRight']", + "width") + .toInt32(); // Without the accompanying fix in place, this test would have failed with: // - Expected less than: 5000 // - Actual : 9372 |