summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2023-02-21 12:38:38 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2023-02-21 13:14:40 +0000
commitb767398f33f91f53f65ab2822ee667b59589e162 (patch)
treef8cc3dc6f00122e827418dc8ef65aeb3ed7b2722 /desktop
parente0228eb8a15127af0bc6eed3b60333265dc4d697 (diff)
qa: use dispatchCommand from macroTest
Change-Id: I135bdcf6b93a38d7ee746234462736b0868c9017 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147395 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/qa/desktop_lib/test_desktop_lib.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/desktop/qa/desktop_lib/test_desktop_lib.cxx b/desktop/qa/desktop_lib/test_desktop_lib.cxx
index 6be2de622b1d..9cd9e74a61ff 100644
--- a/desktop/qa/desktop_lib/test_desktop_lib.cxx
+++ b/desktop/qa/desktop_lib/test_desktop_lib.cxx
@@ -37,7 +37,6 @@
#include <sfx2/lokhelper.hxx>
#include <test/unoapi_test.hxx>
#include <comphelper/lok.hxx>
-#include <comphelper/dispatchcommand.hxx>
#include <comphelper/propertysequence.hxx>
#include <osl/conditn.hxx>
#include <svl/srchitem.hxx>
@@ -606,7 +605,7 @@ void DesktopLOKTest::testSearchCalc()
{"SearchItem.Backward", uno::Any(false)},
{"SearchItem.Command", uno::Any(static_cast<sal_uInt16>(SvxSearchCmd::FIND_ALL))},
}));
- comphelper::dispatchCommand(".uno:ExecuteSearch", aPropertyValues);
+ dispatchCommand(mxComponent, ".uno:ExecuteSearch", aPropertyValues);
Scheduler::ProcessEventsToIdle();
std::vector<OString> aSelections;
@@ -637,7 +636,7 @@ void DesktopLOKTest::testSearchAllNotificationsCalc()
{"SearchItem.Backward", uno::Any(false)},
{"SearchItem.Command", uno::Any(static_cast<sal_uInt16>(SvxSearchCmd::FIND_ALL))},
}));
- comphelper::dispatchCommand(".uno:ExecuteSearch", aPropertyValues);
+ dispatchCommand(mxComponent, ".uno:ExecuteSearch", aPropertyValues);
Scheduler::ProcessEventsToIdle();
// This was 1, make sure that we get no notifications about selection changes during search.
@@ -769,7 +768,7 @@ void DesktopLOKTest::testPasteWriterJPEG()
{
{"AnchorType", uno::Any(static_cast<sal_uInt16>(text::TextContentAnchorType_AT_CHARACTER))},
}));
- comphelper::dispatchCommand(".uno:Paste", aPropertyValues);
+ dispatchCommand(mxComponent, ".uno:Paste", aPropertyValues);
xShape.set(xDrawPage->getByIndex(0), uno::UNO_QUERY);
// This was text::TextContentAnchorType_AS_CHARACTER, AnchorType argument was ignored.
CPPUNIT_ASSERT_EQUAL(text::TextContentAnchorType_AT_CHARACTER, xShape->getPropertyValue("AnchorType").get<text::TextContentAnchorType>());