diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-03-05 20:21:58 +0100 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-03-05 20:24:03 +0100 |
commit | 477684669a03e7c6048b804ca3f3ebec43a4d071 (patch) | |
tree | f65bf6865d4c115e6dd9e943811b194f343b3017 /sw | |
parent | ce5cca0cdad0a414d7f5a8e007a38755e1ae1b51 (diff) |
ooxml: round-trip test for w14:anchorId & wp14:anchorId
Change-Id: Iada0ba2b6d1450167977915fe95a38b5bab2559c
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/AnchorId.docx | bin | 0 -> 17942 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlsdrexport.cxx | 12 |
2 files changed, 12 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/AnchorId.docx b/sw/qa/extras/ooxmlexport/data/AnchorId.docx Binary files differnew file mode 100644 index 000000000000..b1b66684d36c --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/AnchorId.docx diff --git a/sw/qa/extras/ooxmlexport/ooxmlsdrexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlsdrexport.cxx index d3e6f6bf3099..ed9f630ef6fa 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlsdrexport.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlsdrexport.cxx @@ -890,6 +890,18 @@ DECLARE_OOXMLEXPORT_TEST(testGroupshapeThemeFont, "groupshape-theme-font.docx") CPPUNIT_ASSERT_EQUAL(OUString("Cambria"), getProperty<OUString>(xRun, "CharFontName")); } +DECLARE_OOXMLEXPORT_TEST(testAnchorIdForWP14AndW14, "AnchorId.docx") +{ + xmlDocPtr pXmlDoc = parseExport("word/document.xml"); + if (!pXmlDoc) + return; + + assertXPath(pXmlDoc, "/w:document/w:body/w:p[1]/w:r[3]/mc:AlternateContent/mc:Choice/w:drawing/wp:inline", "anchorId", "78735EFD"); + assertXPath(pXmlDoc, "/w:document/w:body/w:p[1]/w:r[3]/mc:AlternateContent/mc:Fallback/w:pict/v:rect", "anchorId", "78735EFD"); + + +} + #endif CPPUNIT_PLUGIN_IMPLEMENT(); |