sd/qa/unit/AnnotationTest.cxx |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

New commits:
commit 6cbfaee591ffd51a5e10003c09ca80cc751e324a
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Fri Jul 19 20:37:11 2024 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Fri Jul 19 23:19:57 2024 +0200

    CppunitTest_sd_annotation_tests: remove redundant ProcessEventsToIdle
    
    it's already called inside dispatchCommand
    
    Change-Id: I037fca27b55db2001364fa2b97c661413389f421
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170781
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sd/qa/unit/AnnotationTest.cxx b/sd/qa/unit/AnnotationTest.cxx
index 61b9c01f701e..a480c023766b 100644
--- a/sd/qa/unit/AnnotationTest.cxx
+++ b/sd/qa/unit/AnnotationTest.cxx
@@ -105,7 +105,6 @@ CPPUNIT_TEST_FIXTURE(AnnotationTest, testAnnotationInsert)
     CPPUNIT_ASSERT_EQUAL(size_t(0), pPage->GetObjCount());
 
     dispatchCommand(mxComponent, u".uno:InsertAnnotation"_ustr, {});
-    Scheduler::ProcessEventsToIdle();
 
     CPPUNIT_ASSERT_EQUAL(size_t(1), pPage->GetObjCount());
     CPPUNIT_ASSERT_EQUAL(size_t(1), pPage->getAnnotations().size());
@@ -186,7 +185,6 @@ CPPUNIT_TEST_FIXTURE(AnnotationTest, testAnnotationDelete)
     dispatchCommand(mxComponent, u".uno:InsertAnnotation"_ustr, {});
     dispatchCommand(mxComponent, u".uno:InsertAnnotation"_ustr, {});
     dispatchCommand(mxComponent, u".uno:InsertAnnotation"_ustr, {});
-    Scheduler::ProcessEventsToIdle();
 
     CPPUNIT_ASSERT_EQUAL(size_t(3), pPage->GetObjCount());
 
@@ -203,7 +201,6 @@ CPPUNIT_TEST_FIXTURE(AnnotationTest, testAnnotationDelete)
         { "Id", uno::Any(OUString::number(xAnnotation->GetId())) },
     }));
     dispatchCommand(mxComponent, u".uno:DeleteAnnotation"_ustr, 
aPropertyValues);
-    Scheduler::ProcessEventsToIdle();
 
     CPPUNIT_ASSERT_EQUAL(size_t(2), pPage->GetObjCount());
     CPPUNIT_ASSERT_EQUAL(size_t(2), pPage->getAnnotations().size());
@@ -224,7 +221,6 @@ CPPUNIT_TEST_FIXTURE(AnnotationTest, 
testAnnotationInsertUndoRedo)
 
     dispatchCommand(mxComponent, u".uno:InsertAnnotation"_ustr, {});
     dispatchCommand(mxComponent, u".uno:InsertAnnotation"_ustr, {});
-    Scheduler::ProcessEventsToIdle();
 
     CPPUNIT_ASSERT_EQUAL(size_t(2), pPage->GetObjCount());
     SdrObject* pObject = pPage->GetObj(0);
@@ -247,13 +243,13 @@ CPPUNIT_TEST_FIXTURE(AnnotationTest, 
testAnnotationInsertUndoRedo)
     CPPUNIT_ASSERT_EQUAL(sal_uInt64(nID + 1), 
pPage->getAnnotations().at(1)->GetId());
 
     dispatchCommand(mxComponent, u".uno:DeleteAnnotation"_ustr, {});
-    Scheduler::ProcessEventsToIdle();
+
     CPPUNIT_ASSERT_EQUAL(size_t(1), pPage->GetObjCount());
     CPPUNIT_ASSERT_EQUAL(size_t(1), pPage->getAnnotations().size());
     CPPUNIT_ASSERT_EQUAL(sal_uInt64(nID + 0), 
pPage->getAnnotations().at(0)->GetId());
 
     dispatchCommand(mxComponent, u".uno:Undo"_ustr, {});
-    Scheduler::ProcessEventsToIdle();
+
     CPPUNIT_ASSERT_EQUAL(size_t(2), pPage->GetObjCount());
     CPPUNIT_ASSERT_EQUAL(size_t(2), pPage->getAnnotations().size());
     CPPUNIT_ASSERT_EQUAL(sal_uInt64(nID + 0), 
pPage->getAnnotations().at(0)->GetId());

Reply via email to