diff options
author | sahil <gautamsahil1947@gmail.com> | 2023-09-26 16:24:14 +0530 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2023-10-03 13:34:33 +0200 |
commit | 11b06806e7b674ee3992e684d8f9dfd6cfc6999a (patch) | |
tree | 4ddea43e9a9f1ce5d9609af1a274736ceca7b264 | |
parent | 58d755bfef8a932577b550751cd5cc4bafb1700c (diff) |
tdf#151384 Character Style internet link.. Test
Change-Id: Ia402648b9b3feea64b7a8ba16c72dc439dbd6679
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157281
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/151384Hyperlink.odt | bin | 0 -> 9372 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport16.cxx | 9 |
2 files changed, 9 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/151384Hyperlink.odt b/sw/qa/extras/ooxmlexport/data/151384Hyperlink.odt Binary files differnew file mode 100644 index 000000000000..223fda16df33 --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/151384Hyperlink.odt diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx index 502a8d9c6797..e4eb392faf16 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx @@ -211,6 +211,15 @@ DECLARE_OOXMLEXPORT_TEST(testTdf142486_LeftMarginShadowLeft, "tdf142486_LeftMarg CPPUNIT_ASSERT_DOUBLES_EQUAL(sal_Int32(953), getProperty<sal_Int32>(xFrame, "LeftMargin"), 1); } +DECLARE_OOXMLEXPORT_TEST(testTdf151384Hyperlink, "151384Hyperlink.odt") +{ + loadAndSave("151384Hyperlink.odt"); + xmlDocUniquePtr pXmlDoc = parseExport("word/document.xml"); + xmlDocUniquePtr pXmlStyles = parseExport("word/styles.xml"); + assertXPath(pXmlDoc, "/w:document/w:body/w:p/w:hyperlink/w:r/w:rPr/w:rStyle", "val", "Hyperlink"); + assertXPath(pXmlStyles, "/w:styles/w:style[@w:styleId='Hyperlink']/w:name", "val", "Hyperlink"); +} + DECLARE_OOXMLEXPORT_TEST(testTdf66039, "tdf66039.docx") { // This bugdoc has a groupshape (WPG) with a table inside its each member shape. |