diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2023-10-30 17:30:08 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2023-10-31 08:43:40 +0100 |
commit | 33ca16e94dcd9b74f39937bafaa76c8ca9189877 (patch) | |
tree | 676febd81c78fa1cdca337357948407b894edb41 /sw | |
parent | 8d6f1a644895e1a3a1a4ea1fd336125a0ccee964 (diff) |
related: tdf#156905: sw_odfexport2: Add unittest
The sample file started to crash at import time with
d8de2dc3c55a9013a71167c8058a333e7221a6a0
"xmloff: import of theme structure + import/export/round-trip tests"
Later, it was fixed with 4f347ebabad6355014889f0a81b107dc774590fe
"use shared_ptr for model::Theme instead of unique_ptr" but it was
still crashing at export time. Finally, the export crash was fixed with
9747d9a6ea954dfca4152d36fdb28a8b77fec84b
"xmloff: rename theme color names and color-table to theme-colors"
Adding it as a unittest since the crashtesting didn't find it over
a range of 3423 commits
Change-Id: I466e3db9bc917f299afe2399b15e4d13db11e1ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158670
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/odfexport/data/tdf156905.odt | bin | 0 -> 30831 bytes | |||
-rw-r--r-- | sw/qa/extras/odfexport/odfexport2.cxx | 6 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sw/qa/extras/odfexport/data/tdf156905.odt b/sw/qa/extras/odfexport/data/tdf156905.odt Binary files differnew file mode 100644 index 000000000000..41fe7a1d8c7d --- /dev/null +++ b/sw/qa/extras/odfexport/data/tdf156905.odt diff --git a/sw/qa/extras/odfexport/odfexport2.cxx b/sw/qa/extras/odfexport/odfexport2.cxx index 48faa5ac5769..3a24f2896b5e 100644 --- a/sw/qa/extras/odfexport/odfexport2.cxx +++ b/sw/qa/extras/odfexport/odfexport2.cxx @@ -386,6 +386,12 @@ DECLARE_ODFEXPORT_TEST(tdf149248, "tdf149248.odt") CPPUNIT_ASSERT_EQUAL(true, getProperty<bool>(getParagraph(4), "ParaHyphenationNoLastWord")); } +DECLARE_ODFEXPORT_TEST(testThemeCrash, "tdf156905.odt") +{ + // first it started to crash at import time, later at export time + CPPUNIT_ASSERT_EQUAL(4, getPages()); +} + DECLARE_ODFEXPORT_TEST(testTdf150394, "tdf150394.odt") { // crashes at import time |