summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-11-04 17:28:05 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2021-11-04 18:38:49 +0100
commite54aa9fe665b5e065c86bd7564156cac262f9c02 (patch)
tree26822e47c9f6cef874d5867136061dcefaa695c6 /sd
parent9158d2d2f19cf7bccba12d2ad4cb340e882b51cc (diff)
tdf#91060: sd_export_tests: Add unittest
Change-Id: Idb9156fb1ab1cc9c9a59a50af85db174eeefc3b8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124717 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sd')
-rw-r--r--sd/qa/unit/data/pptx/tdf91060.pptxbin0 -> 23274 bytes
-rw-r--r--sd/qa/unit/export-tests.cxx9
2 files changed, 9 insertions, 0 deletions
diff --git a/sd/qa/unit/data/pptx/tdf91060.pptx b/sd/qa/unit/data/pptx/tdf91060.pptx
new file mode 100644
index 000000000000..8ed2d4145261
--- /dev/null
+++ b/sd/qa/unit/data/pptx/tdf91060.pptx
Binary files differ
diff --git a/sd/qa/unit/export-tests.cxx b/sd/qa/unit/export-tests.cxx
index 89e5f13a27c0..f1d0281aab0d 100644
--- a/sd/qa/unit/export-tests.cxx
+++ b/sd/qa/unit/export-tests.cxx
@@ -90,6 +90,7 @@ public:
void testSoftEdges();
void testShadowBlur();
void testRhbz1870501();
+ void testTdf91060();
void testTdf128550();
void testTdf140714();
void testMasterPageBackgroundFullSize();
@@ -136,6 +137,7 @@ public:
CPPUNIT_TEST(testSoftEdges);
CPPUNIT_TEST(testShadowBlur);
CPPUNIT_TEST(testRhbz1870501);
+ CPPUNIT_TEST(testTdf91060);
CPPUNIT_TEST(testTdf128550);
CPPUNIT_TEST(testTdf140714);
CPPUNIT_TEST(testMasterPageBackgroundFullSize);
@@ -1468,6 +1470,13 @@ void SdExportTest::testRhbz1870501()
xDocShRef = saveAndReload( xDocShRef.get(), ODG );
}
+void SdExportTest::testTdf91060()
+{
+ //Without the fix in place, it would crash at import time
+ ::sd::DrawDocShellRef xDocShRef = loadURL( m_directories.getURLFromSrc(u"/sd/qa/unit/data/pptx/tdf91060.pptx"), PPTX);
+ xDocShRef = saveAndReload( xDocShRef.get(), PPTX );
+}
+
void SdExportTest::testTdf128550()
{
utl::TempFile tempFile;