sd/qa/unit/export-tests-ooxml4.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit b090bcf4d435ef380130d71749433e5f33ae226b Author: Karthik Godha <[email protected]> AuthorDate: Mon Nov 17 20:03:33 2025 +0530 Commit: Michael Stahl <[email protected]> CommitDate: Tue Nov 18 19:10:17 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]> diff --git a/sd/qa/unit/export-tests-ooxml4.cxx b/sd/qa/unit/export-tests-ooxml4.cxx index 3f6d3f87c695..7d47c77c9093 100644 --- a/sd/qa/unit/export-tests-ooxml4.cxx +++ b/sd/qa/unit/export-tests-ooxml4.cxx @@ -1560,6 +1560,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,
