diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-09-08 10:27:55 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-09-08 12:08:13 +0200 |
commit | db85b90b52e87a97f62c15900801e3297bde4de3 (patch) | |
tree | 421877608a18b6b4888496f9b208cc4bac1a614e /sd/qa/unit | |
parent | 94b9827f790ea1d37c2e128df1e3dc4b57c5f768 (diff) |
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 <xiscofauli@libreoffice.org>
Diffstat (limited to 'sd/qa/unit')
-rw-r--r-- | sd/qa/unit/data/pptx/tdf150770.pptx | bin | 0 -> 46047 bytes | |||
-rw-r--r-- | sd/qa/unit/import-tests2.cxx | 14 |
2 files changed, 14 insertions, 0 deletions
diff --git a/sd/qa/unit/data/pptx/tdf150770.pptx b/sd/qa/unit/data/pptx/tdf150770.pptx Binary files differnew file mode 100644 index 000000000000..72a2dc322e72 --- /dev/null +++ b/sd/qa/unit/data/pptx/tdf150770.pptx 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. |