diff options
author | Adam Seskunas <adamseskunas@gmail.com> | 2024-09-01 07:54:28 -0700 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-09-02 10:28:07 +0200 |
commit | 50097952a8ec6abd2b383d219bdcf26cc7b055d5 (patch) | |
tree | 9b783d474dabd8b1605007bfca8fbb2b87ed4a12 /sw/qa/extras/ooxmlexport | |
parent | 20ea8a89aa5fc733ddc9ade7b3d40a2ca62a563f (diff) |
tdf#61309 Add Unit test
Change-Id: I4160a5fc8a14c383b5249eed539ae8044b2a8e7c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172555
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/extras/ooxmlexport')
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/tdf61309.docx | bin | 0 -> 6964 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport21.cxx | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf61309.docx b/sw/qa/extras/ooxmlexport/data/tdf61309.docx Binary files differnew file mode 100644 index 000000000000..c037a1887a76 --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/tdf61309.docx diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport21.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport21.cxx index a7b8e92ca56f..ee67ec61fe5e 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport21.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport21.cxx @@ -1169,6 +1169,14 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf89731) // Without the fix in place this crashes on opening loadAndSave("tdf89731.docx"); } + +CPPUNIT_TEST_FIXTURE(Test, testTdf61309) +{ + // Don't crash on import + loadAndSave("tdf61309.docx"); + CPPUNIT_ASSERT_EQUAL(1, getPages()); +} + } // end of anonymous namespace CPPUNIT_PLUGIN_IMPLEMENT(); |