tdf#146150 Update test to use dispatch command instead of numerical ID
Change-Id: Ib160576a2a8167cd1cc2cc619b7dd1cbed994a1e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211033 Tested-by: Jenkins Reviewed-by: Hossein <hossein@libreoffice.org>
This commit is contained in:
@@ -192,7 +192,7 @@ CPPUNIT_TEST_FIXTURE(DispatchTest, testSfxOfficeDispatchDispose)
|
|||||||
mxComponent->dispose();
|
mxComponent->dispose();
|
||||||
|
|
||||||
util::URL urlSlot;
|
util::URL urlSlot;
|
||||||
urlSlot.Complete = "slot:5598";
|
urlSlot.Complete = ".uno:JumpToMark";
|
||||||
xParser->parseStrict(urlSlot);
|
xParser->parseStrict(urlSlot);
|
||||||
// crashed with UAF
|
// crashed with UAF
|
||||||
xDisp->dispatch(urlSlot, {});
|
xDisp->dispatch(urlSlot, {});
|
||||||
|
|||||||
Reference in New Issue
Block a user