diff options
author | Mark Hung <marklh9@gmail.com> | 2017-06-11 08:55:05 +0800 |
---|---|---|
committer | Mark Hung <marklh9@gmail.com> | 2017-06-16 15:54:23 +0200 |
commit | dfed429eaceb4ec8316b06ad18a8473ff1d34a2b (patch) | |
tree | 88cacd41752c08a6e8f6f6b0356e781cadf7112e /sw/qa | |
parent | 6e855d89e9d7807c16569ec7e335ea2dbafba47d (diff) |
tdf#85161 implement ooxml SYMBOL field instruction
Only font name switch (f) is implemented.
Change-Id: I09df8230dff3cf0619065da69bfaf3caad0a39ae
Reviewed-on: https://gerrit.libreoffice.org/38654
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mark Hung <marklh9@gmail.com>
Diffstat (limited to 'sw/qa')
-rwxr-xr-x | sw/qa/extras/ooxmlexport/data/tdf85161.docx | bin | 0 -> 15730 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlfieldexport.cxx | 5 |
2 files changed, 5 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf85161.docx b/sw/qa/extras/ooxmlexport/data/tdf85161.docx Binary files differnew file mode 100755 index 000000000000..e079b4906617 --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/tdf85161.docx diff --git a/sw/qa/extras/ooxmlexport/ooxmlfieldexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlfieldexport.cxx index db20995238e3..c3b2af4bc065 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlfieldexport.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlfieldexport.cxx @@ -687,6 +687,11 @@ DECLARE_OOXMLEXPORT_TEST(testOO39845, "ooo39845-7.odt") assertXPath(pXmlDoc, "/w:document/w:body/w:p[1]/w:hyperlink[1]", "anchor", "Figure4|graphic"); } +DECLARE_OOXMLEXPORT_TEST( testTdf85161, "tdf85161.docx" ) +{ + CPPUNIT_ASSERT_EQUAL(OUString("Symbol"), getProperty<OUString>(getRun(getParagraph(1), 1), "CharFontName")); + CPPUNIT_ASSERT_EQUAL(OUString(u'\x5e'),getParagraph(1)->getString()); +} CPPUNIT_PLUGIN_IMPLEMENT(); |