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/extras/rtfimport/rtfimport.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/extras/rtfimport/rtfimport.cxx')
-rw-r--r-- | sw/qa/extras/rtfimport/rtfimport.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx b/sw/qa/extras/rtfimport/rtfimport.cxx index c018f9a581a9..e7392d333068 100644 --- a/sw/qa/extras/rtfimport/rtfimport.cxx +++ b/sw/qa/extras/rtfimport/rtfimport.cxx @@ -393,7 +393,9 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf112211_2) createSwDoc("tdf112211-2.rtf"); // Spacing between the bullet and the actual text was too large. // This is now around 269, large old value was 629. - int nWidth = parseDump("/root/page/body/txt[2]/Text[@nType='PortionType::TabLeft']", "nWidth") + int nWidth = parseDump("/root/page/body/txt[2]/SwParaPortion/SwLineLayout/" + "child::*[@type='PortionType::TabLeft']", + "width") .toInt32(); CPPUNIT_ASSERT_LESS(300, nWidth); } |