sd/qa/unit/data/pptx/tdf150770.pptx |binary sd/qa/unit/import-tests2.cxx | 14 ++++++++++++++ 2 files changed, 14 insertions(+)
New commits: commit db85b90b52e87a97f62c15900801e3297bde4de3 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Thu Sep 8 10:27:55 2022 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Thu Sep 8 12:08:13 2022 +0200 tdf#150770: sd_import_tests2: Add unittest Change-Id: I4bd5f934abb62a161a2002697d68e1bda72e697e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139634 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sd/qa/unit/data/pptx/tdf150770.pptx b/sd/qa/unit/data/pptx/tdf150770.pptx new file mode 100644 index 000000000000..72a2dc322e72 Binary files /dev/null and b/sd/qa/unit/data/pptx/tdf150770.pptx differ diff --git a/sd/qa/unit/import-tests2.cxx b/sd/qa/unit/import-tests2.cxx index 4357719597d9..23e92530b479 100644 --- a/sd/qa/unit/import-tests2.cxx +++ b/sd/qa/unit/import-tests2.cxx @@ -121,6 +121,7 @@ public: void testTdf149206(); void testTdf149785(); void testTdf149985(); + void testTdf150770(); void testTdf120028(); void testDescriptionImport(); void testTdf83247(); @@ -188,6 +189,7 @@ public: CPPUNIT_TEST(testTdf149206); CPPUNIT_TEST(testTdf149785); CPPUNIT_TEST(testTdf149985); + CPPUNIT_TEST(testTdf150770); CPPUNIT_TEST(testTdf120028); CPPUNIT_TEST(testDescriptionImport); CPPUNIT_TEST(testTdf83247); @@ -1601,6 +1603,18 @@ void SdImportTest2::testTdf149985() xDocShRef->DoClose(); } +void SdImportTest2::testTdf150770() +{ + // Without the fix in place, this test would have failed to load the file + ::sd::DrawDocShellRef xDocShRef + = loadURL(m_directories.getURLFromSrc(u"/sd/qa/unit/data/pptx/tdf150770.pptx"), PPTX); + uno::Reference<drawing::XDrawPagesSupplier> xDoc(xDocShRef->GetDoc()->getUnoModel(), + uno::UNO_QUERY); + CPPUNIT_ASSERT_EQUAL(sal_Int32(4), xDoc->getDrawPages()->getCount()); + + xDocShRef->DoClose(); +} + void SdImportTest2::testTdf120028() { // Check that the text shape has 4 columns.