diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-04-07 17:31:56 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-04-08 21:06:37 +0200 |
commit | ea3f08b91d70587400011e7a34fd9df259542e85 (patch) | |
tree | c536105ea16f44516fcbb4856b4bedf0e79ba5cc /sw/qa | |
parent | 2ed743de88da7ef70eb63fed925a7cf29980c01a (diff) |
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 <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/uiwriter/uiwriter6.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
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) |