sw/qa/extras/unowriter/unowriter.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
New commits: commit cab1a6984f9d141c6fc240897e615cf889d0e275 Author: Caolán McNamara <[email protected]> AuthorDate: Fri Dec 12 14:56:40 2025 +0000 Commit: Miklos Vajna <[email protected]> CommitDate: Mon Dec 15 10:50:35 2025 +0100 use 🐱 and DejaVu Sans known to already work in: https://gerrit.libreoffice.org/c/core/+/193497 where Noto Sans in Debian might be problematic Change-Id: I506fc673951e6ff515da9fb2120b748e2c00bd91 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195577 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Miklos Vajna <[email protected]> diff --git a/sw/qa/extras/unowriter/unowriter.cxx b/sw/qa/extras/unowriter/unowriter.cxx index 80738e52f0a9..d5c98d85ce99 100644 --- a/sw/qa/extras/unowriter/unowriter.cxx +++ b/sw/qa/extras/unowriter/unowriter.cxx @@ -1368,7 +1368,7 @@ CPPUNIT_TEST_FIXTURE(SwUnoWriter, testTdf160278) { createSwDoc(); uno::Reference<beans::XPropertySet> xParaProps(getParagraph(1), uno::UNO_QUERY); - xParaProps->setPropertyValue(u"CharFontName"_ustr, uno::Any(u"Noto Sans"_ustr)); + xParaProps->setPropertyValue(u"CharFontName"_ustr, uno::Any(u"DejaVu Sans"_ustr)); auto xTextDocument(mxComponent.queryThrow<css::text::XTextDocument>()); auto xText(xTextDocument->getText()); xText->setString(u"123"_ustr); @@ -1376,11 +1376,11 @@ CPPUNIT_TEST_FIXTURE(SwUnoWriter, testTdf160278) auto xCursor = xText->createTextCursorByRange(xText->getEnd()); xCursor->goLeft(1, true); CPPUNIT_ASSERT_EQUAL(u"3"_ustr, xCursor->getString()); - // Insert an SMP character U+1df1e (so it's two UTF-16 code units, 0xd837 0xdf1e): - xCursor->setString(u"𝼞"_ustr); + // Insert an SMP character U+1f431 (so it's two UTF-16 code units, 0xd83d 0xdc31): + xCursor->setString(u"🐱"_ustr); // Without the fix, the replacement would expand the cursor one too many characters to the left, - // and the cursor text would become "2𝼞", failing the next test: - CPPUNIT_ASSERT_EQUAL(u"𝼞"_ustr, xCursor->getString()); + // and the cursor text would become "2🐱", failing the next test: + CPPUNIT_ASSERT_EQUAL(u"🐱"_ustr, xCursor->getString()); xCursor->setString(u"test"_ustr); CPPUNIT_ASSERT_EQUAL(u"test"_ustr, xCursor->getString()); // This test would fail, too; the text would be "1test":
