sd/qa/unit/export-tests-ooxml4.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit 64a80bfea7cf612dd13401c461018ff88453aebc Author: Karthik Godha <[email protected]> AuthorDate: Mon Nov 17 20:03:33 2025 +0530 Commit: Xisco Fauli <[email protected]> CommitDate: Thu Nov 27 09:58:56 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/+/194634 Code-Style: Xisco Fauli <[email protected]> Reviewed-by: Xisco Fauli <[email protected]> Tested-by: Jenkins diff --git a/sd/qa/unit/export-tests-ooxml4.cxx b/sd/qa/unit/export-tests-ooxml4.cxx index 5879e4d3f4ca..85ae37d30bce 100644 --- a/sd/qa/unit/export-tests-ooxml4.cxx +++ b/sd/qa/unit/export-tests-ooxml4.cxx @@ -1631,6 +1631,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,
