sw/qa/extras/ooxmlexport/data/151384Hyperlink.odt |binary
 sw/qa/extras/ooxmlexport/ooxmlexport16.cxx        |    9 +++++++++
 2 files changed, 9 insertions(+)

New commits:
commit 11b06806e7b674ee3992e684d8f9dfd6cfc6999a
Author:     sahil <gautamsahil1...@gmail.com>
AuthorDate: Tue Sep 26 16:24:14 2023 +0530
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Tue Oct 3 13:34:33 2023 +0200

    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 <xiscofa...@libreoffice.org>

diff --git a/sw/qa/extras/ooxmlexport/data/151384Hyperlink.odt 
b/sw/qa/extras/ooxmlexport/data/151384Hyperlink.odt
new file mode 100644
index 000000000000..223fda16df33
Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/151384Hyperlink.odt 
differ
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.

Reply via email to