summaryrefslogtreecommitdiff
path: root/sw/qa/extras/ww8export/ww8export3.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2023-01-26 20:03:44 +0100
committerMiklos Vajna <vmiklos@collabora.com>2023-01-27 07:26:53 +0000
commit12a5e9bd92c0969051e035a4f2b7c18f0e3e79b5 (patch)
tree36ed8e46b3f502b6f7720866636e09d05c7892bd /sw/qa/extras/ww8export/ww8export3.cxx
parentf7544650cc4e31da67873898e2d587afa846b9b4 (diff)
sw: avoid copy&paste in SwFieldPortion::dumpAsXml()
Improve SwFont::dumpAsXml() a little, then we can just call it. Change-Id: I581445230cd0732819e1bbb45727cf59231c5f47 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146191 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/qa/extras/ww8export/ww8export3.cxx')
-rw-r--r--sw/qa/extras/ww8export/ww8export3.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/qa/extras/ww8export/ww8export3.cxx b/sw/qa/extras/ww8export/ww8export3.cxx
index 8f516e5b1984..ae83818c16e2 100644
--- a/sw/qa/extras/ww8export/ww8export3.cxx
+++ b/sw/qa/extras/ww8export/ww8export3.cxx
@@ -681,7 +681,7 @@ DECLARE_WW8EXPORT_TEST(testTdf108518_CRnumformatting, "tdf108518_CRnumformatting
{
CPPUNIT_ASSERT_EQUAL(OUString("6.2.3."), parseDump("//body/txt[4]/SwParaPortion/SwLineLayout/child::*[@type='PortionType::Number']", "expand"));
//Without this fix in place, it would become 200 (and non-bold).
- CPPUNIT_ASSERT_EQUAL(OUString("220"), parseDump("//body/txt[4]/SwParaPortion/SwLineLayout/child::*[@type='PortionType::Number']", "font-height"));
+ CPPUNIT_ASSERT_EQUAL(OUString("220"), parseDump("//body/txt[4]/SwParaPortion/SwLineLayout/child::*[@type='PortionType::Number']/SwFont", "height"));
}
DECLARE_WW8EXPORT_TEST(testTdf120711_joinedParagraphWithChangeTracking, "tdf120711.doc")