From d52b97175b02745c1d9afab03256419bbebdf48d Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Tue, 21 Feb 2023 14:07:38 +0100 Subject: qa: call ProcessEventsToIdle inside dispatchCommand Change-Id: I909e6f334f4a659282141a97ccb3ffdea6ecc364 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147397 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- desktop/qa/desktop_lib/test_desktop_lib.cxx | 2 -- 1 file changed, 2 deletions(-) (limited to 'desktop/qa') diff --git a/desktop/qa/desktop_lib/test_desktop_lib.cxx b/desktop/qa/desktop_lib/test_desktop_lib.cxx index 9cd9e74a61ff..3d2fc3c0d2fb 100644 --- a/desktop/qa/desktop_lib/test_desktop_lib.cxx +++ b/desktop/qa/desktop_lib/test_desktop_lib.cxx @@ -606,7 +606,6 @@ void DesktopLOKTest::testSearchCalc() {"SearchItem.Command", uno::Any(static_cast(SvxSearchCmd::FIND_ALL))}, })); dispatchCommand(mxComponent, ".uno:ExecuteSearch", aPropertyValues); - Scheduler::ProcessEventsToIdle(); std::vector aSelections; sal_Int32 nIndex = 0; @@ -637,7 +636,6 @@ void DesktopLOKTest::testSearchAllNotificationsCalc() {"SearchItem.Command", uno::Any(static_cast(SvxSearchCmd::FIND_ALL))}, })); dispatchCommand(mxComponent, ".uno:ExecuteSearch", aPropertyValues); - Scheduler::ProcessEventsToIdle(); // This was 1, make sure that we get no notifications about selection changes during search. CPPUNIT_ASSERT_EQUAL(0, m_nSelectionBeforeSearchResult); -- cgit