summaryrefslogtreecommitdiff
path: root/sw/qa/extras/odfexport/odfexport.cxx
diff options
context:
space:
mode:
authorMark Hung <marklh9@gmail.com>2018-03-09 22:41:34 +0800
committerMark Hung <marklh9@gmail.com>2018-03-25 06:55:27 +0200
commit1401f5fbc8427178371b2d6add11510e06e6414f (patch)
tree97eeccb1a597f406bfbc38e1a4c8770f8bc1b7d1 /sw/qa/extras/odfexport/odfexport.cxx
parent1fbe46cf08f525e78016feef83f4c38b79b337ba (diff)
xmloff: export ruby-position in a more compatible way.
Export both style:ruby-position and loext:ruby-position. The later one only allows "above" and "below", obeying ODF standard while the former one allows "inter-character", which is added lately. Also use ODFVER_012_EXT_COMPAT so that loext:ruby-position isn't exported only in extended mode. Change-Id: I7b9208f289f8253a835b2f7751549206361274e0 Reviewed-on: https://gerrit.libreoffice.org/51007 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mark Hung <marklh9@gmail.com>
Diffstat (limited to 'sw/qa/extras/odfexport/odfexport.cxx')
-rw-r--r--sw/qa/extras/odfexport/odfexport.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/qa/extras/odfexport/odfexport.cxx b/sw/qa/extras/odfexport/odfexport.cxx
index 9d1c60811f78..7566ec25ad6e 100644
--- a/sw/qa/extras/odfexport/odfexport.cxx
+++ b/sw/qa/extras/odfexport/odfexport.cxx
@@ -1921,7 +1921,10 @@ DECLARE_ODFEXPORT_TEST(testReferenceLanguage, "referencelanguage.odt")
DECLARE_ODFEXPORT_TEST(testRubyPosition, "ruby-position.odt")
{
if (xmlDocPtr pXmlDoc = parseExport("content.xml"))
+ {
assertXPath(pXmlDoc, "//style:style[@style:family='ruby']/style:ruby-properties[@loext:ruby-position='inter-character']", 1);
+ assertXPath(pXmlDoc, "//style:style[@style:family='ruby']/style:ruby-properties[@style:ruby-position='below']", 1);
+ }
}
DECLARE_ODFEXPORT_TEST(testBulletAsImage, "BulletAsImage.odt")