| commit | 03b5ef45ae3485e055bbbf44532835a5f8868b8e | [log] |
|---|---|---|
| author | Xisco Fauli <xiscofauli@libreoffice.org> | Mon Nov 28 10:21:13 2022 +0100 |
| committer | Xisco Fauli <xiscofauli@libreoffice.org> | Mon Nov 28 11:55:29 2022 +0100 |
| tree | 7365d2c8f2139e37ad6681b52d63745dba6806dd | |
| parent | 19e3bab1a8def52d9a60f67bd87697e828e37773 [diff] |
tdf#152015: sw_odfimport: Add unittest Change-Id: If7682b93973a8801a81ce9a887bf7bd1b9ac5594 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143374 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
diff --git a/sw/qa/extras/odfimport/data/tdf152015.odt b/sw/qa/extras/odfimport/data/tdf152015.odt new file mode 100644 index 0000000..000bba2 --- /dev/null +++ b/sw/qa/extras/odfimport/data/tdf152015.odt Binary files differ
diff --git a/sw/qa/extras/odfimport/odfimport.cxx b/sw/qa/extras/odfimport/odfimport.cxx index 236c841..6c8e5ec 100644 --- a/sw/qa/extras/odfimport/odfimport.cxx +++ b/sw/qa/extras/odfimport/odfimport.cxx
@@ -1103,6 +1103,14 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf120677) // The document used to hang the layout, consuming memory until OOM } CPPUNIT_TEST_FIXTURE(Test, testTdf152015) { // it hangs at import time createSwDoc("tdf152015.odt"); CPPUNIT_ASSERT_EQUAL( 1, getPages() ); } CPPUNIT_TEST_FIXTURE(Test, testTdf123829) { createSwDoc("tdf123829.odt");