sw/qa/extras/uiwriter/uiwriter6.cxx |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

New commits:
commit ea3f08b91d70587400011e7a34fd9df259542e85
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Thu Apr 7 17:31:56 2022 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Fri Apr 8 21:06:37 2022 +0200

    tdf#83037: sw_uiwriter6: Add unittest
    
    Change-Id: I42a2b697e1b3efd719c0f45474420c9367300776
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132680
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sw/qa/extras/uiwriter/uiwriter6.cxx 
b/sw/qa/extras/uiwriter/uiwriter6.cxx
index 6386c3f07fc6..50819388e96c 100644
--- a/sw/qa/extras/uiwriter/uiwriter6.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter6.cxx
@@ -1591,6 +1591,20 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest6, testTdf133524)
     sReplaced += u" → ";
     // This was "–>" instead of "→"
     CPPUNIT_ASSERT_EQUAL(sReplaced, getParagraph(1)->getString());
+
+    // tdf#83037
+    emulateTyping(*pXTextDocument, u"-> ");
+    sReplaced += u"→ ";
+    CPPUNIT_ASSERT_EQUAL(sReplaced, getParagraph(1)->getString());
+    emulateTyping(*pXTextDocument, u"<- ");
+    sReplaced += u"← ";
+    CPPUNIT_ASSERT_EQUAL(sReplaced, getParagraph(1)->getString());
+    emulateTyping(*pXTextDocument, u"<-- ");
+    sReplaced += u"← ";
+    CPPUNIT_ASSERT_EQUAL(sReplaced, getParagraph(1)->getString());
+    emulateTyping(*pXTextDocument, u"<--> ");
+    sReplaced += u"↔ ";
+    CPPUNIT_ASSERT_EQUAL(sReplaced, getParagraph(1)->getString());
 }
 
 CPPUNIT_TEST_FIXTURE(SwUiWriterTest6, testTdf133524_Romanian)

Reply via email to