summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorAndreas Heinisch <andreas.heinisch@yahoo.de>2025-01-04 11:44:39 +0100
committerAndreas Heinisch <andreas.heinisch@yahoo.de>2025-01-06 11:10:38 +0100
commit7112bc2a98b06217302fb18e52fcbd03f8744f79 (patch)
treed97e21c45ad91687b216ff8d16cc4c318f329bbb /sw/qa
parenta48561a28741436b03006f100b947403e4cddfc9 (diff)
tdf#132770 - FORMATTING: Import inserted text tag <ins> (underlined)
Change-Id: I5819ce4d4551bbd781921d847131f15cf2b94a38 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179771 Tested-by: Jenkins Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/extras/htmlimport/data/tdf132770-inserted-text.html1
-rw-r--r--sw/qa/extras/htmlimport/htmlimport.cxx12
2 files changed, 13 insertions, 0 deletions
diff --git a/sw/qa/extras/htmlimport/data/tdf132770-inserted-text.html b/sw/qa/extras/htmlimport/data/tdf132770-inserted-text.html
new file mode 100644
index 000000000000..d07966ffef47
--- /dev/null
+++ b/sw/qa/extras/htmlimport/data/tdf132770-inserted-text.html
@@ -0,0 +1 @@
+<p><ins>ins</ins></p> \ No newline at end of file
diff --git a/sw/qa/extras/htmlimport/htmlimport.cxx b/sw/qa/extras/htmlimport/htmlimport.cxx
index 746379b6f7b1..c118872158cb 100644
--- a/sw/qa/extras/htmlimport/htmlimport.cxx
+++ b/sw/qa/extras/htmlimport/htmlimport.cxx
@@ -395,6 +395,18 @@ CPPUNIT_TEST_FIXTURE(HtmlImportTest, testTdf79298StrikeoutVariants)
getProperty<sal_Int16>(getRun(getParagraph(3), 1), u"CharStrikeout"_ustr));
}
+CPPUNIT_TEST_FIXTURE(HtmlImportTest, testTdf132770InsertedText)
+{
+ createSwWebDoc("tdf132770-inserted-text.html");
+
+ // Without the accompanying fix in place, this tests would have failed with:
+ // - Expected: 1 (FontLineStyle::LINESTYLE_SINGLE)
+ // - Actual : 0 (FontLineStyle::NONE)
+ CPPUNIT_ASSERT_EQUAL_MESSAGE(
+ "Underline for <ins> missing", sal_Int16(awt::FontUnderline::SINGLE),
+ getProperty<sal_Int16>(getRun(getParagraph(1), 1), u"CharUnderline"_ustr));
+}
+
CPPUNIT_TEST_FIXTURE(HtmlImportTest, testTdf142781)
{
// FIXME: the DPI check should be removed when either (1) the test is fixed to work with