sd/qa/unit/export-tests-ooxml4.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit d01936e79617d6705b832a9c34826a90a9743058 Author: Karthik Godha <[email protected]> AuthorDate: Mon Nov 17 20:03:33 2025 +0530 Commit: Michael Stahl <[email protected]> CommitDate: Mon Dec 15 16:46:55 2025 +0100 tdf#169088: Add oleId != picId assert in unit test Change-Id: I50999e0d9ca615517e17daea611a72c5e0ed7313 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194109 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Michael Stahl <[email protected]> (cherry picked from commit b090bcf4d435ef380130d71749433e5f33ae226b) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195641 Tested-by: Michael Stahl <[email protected]> diff --git a/sd/qa/unit/export-tests-ooxml4.cxx b/sd/qa/unit/export-tests-ooxml4.cxx index 002b54eb3d1c..ca6dfcf49e2c 100644 --- a/sd/qa/unit/export-tests-ooxml4.cxx +++ b/sd/qa/unit/export-tests-ooxml4.cxx @@ -1553,6 +1553,13 @@ CPPUNIT_TEST_FIXTURE(SdOOXMLExportTest4, testOLEObjectAnimationTarget) const OUString sOleId = getXPath( pXmlDoc, "/p:sld/p:cSld/p:spTree/p:graphicFrame/p:nvGraphicFramePr/p:cNvPr", "id"); + const OUString sPicId = getXPath(pXmlDoc, + "/p:sld/p:cSld/p:spTree/p:graphicFrame/a:graphic/" + "a:graphicData/p:oleObj/p:pic/p:nvPicPr/p:cNvPr", + "id"); + + // Check OLE id is different from pic id + CPPUNIT_ASSERT_MESSAGE("OLE id is same as pic id", sOleId != sPicId); // Check animation target spid matches OLE object id assertXPath(pXmlDoc,
