sw/qa/extras/ww8export/data/tdf120003.doc |binary sw/qa/extras/ww8export/ww8export3.cxx | 9 +++++++++ 2 files changed, 9 insertions(+)
New commits: commit f343ad6d8a78798814c9d38261043619b4e2b487 Author: homeboy445 <akshitsa...@gmail.com> AuthorDate: Sat Feb 6 12:46:03 2021 +0530 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Sun Feb 7 18:45:49 2021 +0100 tdf#120003: sw_ww8export3: Add unittest Added a unittest to ensure that a hyperlink Url is exported correctly in doc files. Change-Id: I883abe7edcc669213452f4b92cd1530526a9403d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110510 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sw/qa/extras/ww8export/data/tdf120003.doc b/sw/qa/extras/ww8export/data/tdf120003.doc new file mode 100644 index 000000000000..c544fa5a96e0 Binary files /dev/null and b/sw/qa/extras/ww8export/data/tdf120003.doc differ diff --git a/sw/qa/extras/ww8export/ww8export3.cxx b/sw/qa/extras/ww8export/ww8export3.cxx index 00ab36ac67a2..e18df90483d3 100644 --- a/sw/qa/extras/ww8export/ww8export3.cxx +++ b/sw/qa/extras/ww8export/ww8export3.cxx @@ -210,6 +210,15 @@ CPPUNIT_TEST_FIXTURE(SwModelTestBase, testChicagoNumberingFootnote) CPPUNIT_ASSERT_EQUAL(nExpected, nActual); } +DECLARE_WW8EXPORT_TEST(testHyperLinkURLSaving, "tdf120003.doc") +{ + OUString URL = getProperty<OUString>(getShape(1), "HyperLinkURL"); + // Without the fix in place, this test would have failed with + // - Expected: https://www.libreoffice.org/ + // - Actual : tps://www.libreoffice.org/ + CPPUNIT_ASSERT_EQUAL(OUString("https://www.libreoffice.org/"), URL); +} + DECLARE_WW8EXPORT_TEST(testdf79553_lineNumbers, "tdf79553_lineNumbers.doc") { bool bValue = false; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits