sw/qa/extras/uiwriter/uiwriter6.cxx | 2 -- 1 file changed, 2 deletions(-)
New commits: commit 7ef97c19491a407828a200968139540e51604118 Author: Thorsten Behrens <thorsten.behr...@allotropia.de> AuthorDate: Thu Dec 15 01:50:16 2022 +0100 Commit: László Németh <nem...@numbertext.org> CommitDate: Thu Dec 15 07:17:22 2022 +0000 sw: Fix uiwriter6 unit test From "tdf#124603 sw: pressing Up/Down triggers pending spell checking", only assert GetWrong() after moving cursor out of bad word. Change-Id: I0e722e5c56713fe1a2a7c672d7aab76438d1727f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144202 Tested-by: Jenkins Reviewed-by: László Németh <nem...@numbertext.org> diff --git a/sw/qa/extras/uiwriter/uiwriter6.cxx b/sw/qa/extras/uiwriter/uiwriter6.cxx index dc6db051974f..21fab90ca455 100644 --- a/sw/qa/extras/uiwriter/uiwriter6.cxx +++ b/sw/qa/extras/uiwriter/uiwriter6.cxx @@ -1383,7 +1383,6 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest6, testTdf124603) pWrtShell->Left(SwCursorSkipMode::Chars, /*bSelect=*/false, 1, /*bBasicCall=*/false); emulateTyping(*pTextDoc, u"x"); - CPPUNIT_ASSERT(pNode->GetWrong()); // tdf#92036 pending spell checking bool bPending = !pNode->GetWrong() || !pNode->GetWrong()->Count(); CPPUNIT_ASSERT(bPending); @@ -1391,7 +1390,6 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest6, testTdf124603) // Move right, leave the bad word pWrtShell->Right(SwCursorSkipMode::Chars, /*bSelect=*/false, 1, /*bBasicCall=*/false); - CPPUNIT_ASSERT(pNode->GetWrong()); // tdf#92036 still pending spell checking bPending = !pNode->GetWrong() || !pNode->GetWrong()->Count(); CPPUNIT_ASSERT(bPending);