sd/qa/unit/data/pptx/master-slides.pptx |binary sd/qa/unit/import-tests2.cxx | 10 ++++++++++ 2 files changed, 10 insertions(+)
New commits: commit 41097d6168de85c183be1c8a014c7e85de624060 Author: Henry Castro <[email protected]> AuthorDate: Mon Oct 9 10:29:40 2023 -0400 Commit: Xisco Fauli <[email protected]> CommitDate: Thu Nov 2 09:29:25 2023 +0100 tdf#155512: sd: qa: unit: add unit test "testMasterSlides" . Signed-off-by: Henry Castro <[email protected]> Change-Id: I6117b384fdad215e6c04b6e74df22fe9daa6a526 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157705 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158739 Tested-by: Jenkins (cherry picked from commit 32e6ef3834a0f96d7830719950de52c99aae0263) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158701 Reviewed-by: Xisco Fauli <[email protected]> Tested-by: Xisco Fauli <[email protected]> diff --git a/sd/qa/unit/data/pptx/master-slides.pptx b/sd/qa/unit/data/pptx/master-slides.pptx new file mode 100644 index 000000000000..3494d33254ab Binary files /dev/null and b/sd/qa/unit/data/pptx/master-slides.pptx differ diff --git a/sd/qa/unit/import-tests2.cxx b/sd/qa/unit/import-tests2.cxx index 44eacbf1da05..da6572b8af5a 100644 --- a/sd/qa/unit/import-tests2.cxx +++ b/sd/qa/unit/import-tests2.cxx @@ -1972,6 +1972,16 @@ CPPUNIT_TEST_FIXTURE(SdImportTest2, testTdf153012) CPPUNIT_ASSERT_EQUAL(Color(0xd9d9d9), aFillColor); } +CPPUNIT_TEST_FIXTURE(SdImportTest2, testMasterSlides) +{ + createSdImpressDoc("pptx/master-slides.pptx"); + uno::Reference<drawing::XMasterPagesSupplier> xMasterPagesSupplier(mxComponent, + uno::UNO_QUERY_THROW); + uno::Reference<drawing::XDrawPages> xMasterPages(xMasterPagesSupplier->getMasterPages()); + CPPUNIT_ASSERT(xMasterPages.is()); + CPPUNIT_ASSERT_EQUAL(sal_Int32(7), xMasterPages->getCount()); +} + CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
